SyntaxReference.GetSyntaxAsync(CancellationToken) 方法

定义

检索原始引用的语法节点。
此操作可能会导致分析发生恢复语法节点的情况。

public virtual System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode> GetSyntaxAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetSyntaxAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode>
override this.GetSyntaxAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode>
Public Overridable Function GetSyntaxAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of SyntaxNode)

参数

cancellationToken
CancellationToken

返回

原始引用的语法节点。

适用于