SyntaxTree.GetRoot(CancellationToken) 方法

定义

获取语法树的根节点,如有必要会导致计算。

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

参数

cancellationToken
CancellationToken

返回

适用于