Click or drag to resize

SyntaxTreeGetRoot Method



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

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public SyntaxNode GetRoot(
	CancellationToken cancellationToken = null
)

Parameters

cancellationToken (Optional)
Type: System.ThreadingCancellationToken

Return Value

Type: SyntaxNode
See Also