CSharpSyntaxTree.GetRoot(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the root node of the syntax tree.
public abstract Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode GetRoot (System.Threading.CancellationToken cancellationToken = default);
override this.GetRoot : System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode
Public MustOverride Function GetRoot (Optional cancellationToken As CancellationToken = Nothing) As CSharpSyntaxNode
Parameters
- cancellationToken
- CancellationToken