Udostępnij za pośrednictwem


SyntaxTree.GetRoot(CancellationToken) Method

Definition

Gets the root node of the syntax tree, causing computation if necessary.

public Microsoft.CodeAnalysis.SyntaxNode GetRoot (System.Threading.CancellationToken cancellationToken = default);
member this.GetRoot : System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxNode
Public Function GetRoot (Optional cancellationToken As CancellationToken = Nothing) As SyntaxNode

Parameters

cancellationToken
CancellationToken

Returns

Applies to