SemanticModelExtensions.GetSymbol(SemanticModel, SyntaxNode, CancellationToken) Method
Containing Type: SemanticModelExtensions
Assembly: Roslynator.Core.dll
Returns what symbol, if any, the specified node bound to.
public static Microsoft.CodeAnalysis.ISymbol? GetSymbol(this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.SyntaxNode node, System.Threading.CancellationToken cancellationToken = default)
Parameters
semanticModel SemanticModel
node SyntaxNode
cancellationToken CancellationToken