ModelExtensions.GetSymbolInfo 方法

定义

获取有关语法节点的符号信息。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.SyntaxNode node, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.SyntaxNode * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

参数

semanticModel
SemanticModel
node
SyntaxNode

要获取其语义信息的语法节点。

cancellationToken
CancellationToken

可用于取消获取语义信息的过程的取消令牌。

返回

适用于