Skip to main content

SemanticModelExtensions Class

Namespace: Roslynator

Assembly: Roslynator.Core.dll

A set of extension methods for a SemanticModel.

public static class SemanticModelExtensions

Methods

MethodSummary
GetEnclosingNamedType(SemanticModel, Int32, CancellationToken)Returns the innermost named type symbol that the specified position is considered inside of.
GetEnclosingSymbol<TSymbol>(SemanticModel, Int32, CancellationToken)Returns the innermost symbol of type TSymbol that the specified position is considered inside of.
GetSymbol(SemanticModel, SyntaxNode, CancellationToken)Returns what symbol, if any, the specified node bound to.
GetTypeByMetadataName(SemanticModel, String)Returns the type within the compilation's assembly using its canonical CLR metadata name.
GetTypeSymbol(SemanticModel, SyntaxNode, CancellationToken)Returns type information about the specified node.