API Browser

Class

SemanticModel

class SemanticModel

Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: SemanticModel.AsyncStateMachine.cs, SemanticModel.Binding.cs, SemanticModel.Captures.cs, SemanticModel.ControlFlowAnalysis.cs, SemanticModel.DataFlowAnalysis.cs, SemanticModel.MacroExpansionDocument.cs, SemanticModel.MacroFragments.cs, SemanticModel.MatchExhaustiveness.cs, SemanticModel.MemberSignatures.cs, SemanticModel.MemberSymbolState.cs, SemanticModel.Operations.cs, SemanticModel.Scripting.cs, SemanticModel.cs

Inheritance: Object → SemanticModel

Constructors

1 item

Properties

4 items
Extension member: Colorize: bool No summary available. Extension from BoundTreePrinter.Colorize
Compilation: Compilation No summary available.
IsDebuggingEnabled: bool No summary available.
SyntaxTree: SyntaxTree No summary available.

Methods

63 items
Equals(obj: object?) -> bool Determines whether the specified object is equal to the current object. Inherited from Object.Equals
GetCompletions(position: int) -> IEnumerable<CompletionItem> Gets completion items available at a position in this semantic model's syntax tree.
GetCompletionsAsync(position: int, cancellationToken?: CancellationToken) -> Task<ImmutableArray<CompletionItem>> Gets completion items available at a position in this semantic model's syntax tree asynchronously.
GetDeclaredSymbol(node: SyntaxNode) -> ISymbol? Given a syntax node that declares a method, property, or member accessor, get the corresponding symbol.
GetHashCode() -> int Serves as the default hash function. Inherited from Object.GetHashCode
GetMacroEmbeddedLanguageProjection(position: int, cancellationToken?: CancellationToken) -> MacroEmbeddedLanguageProjection? Gets the embedded-language projection that owns an authored position, including a projection from a nested macro inside a reported Raven fragment.
GetMacroFragmentClassifications(declaration: FreestandingMacroDeclarationSyntax, cancellationToken?: CancellationToken) -> SemanticClassificationResult Classifies the ordinary Raven syntax contained in all fragment regions reported by a declaration-shaped token-tree macro.
GetMacroFragmentClassifications(expression: FreestandingMacroExpressionSyntax, cancellationToken?: CancellationToken) -> SemanticClassificationResult Classifies the ordinary Raven syntax contained in all fragment regions reported by a token-tree macro.
GetMacroFragmentSemanticInfo(declaration: FreestandingMacroDeclarationSyntax, position: int, cancellationToken?: CancellationToken) -> MacroFragmentSemanticInfo? Gets ordinary Raven semantic information at an authored position inside a declaration-shaped macro fragment.
GetMacroFragmentSemanticInfo(expression: FreestandingMacroExpressionSyntax, position: int, cancellationToken?: CancellationToken) -> MacroFragmentSemanticInfo? Gets ordinary Raven semantic information at an authored position inside a fragment reported by a token-tree macro.
GetMacroInputSnapshot(expression: FreestandingMacroExpressionSyntax, cancellationToken?: CancellationToken) -> MacroInputSnapshot Gets the compiler-owned token-and-fragment snapshot for a token-tree macro invocation.
GetMacroSignatureHelp(position: int) -> MacroSignatureHelp? Gets macro signature help at a position in this semantic model's syntax tree.
GetMacroTokenInfo(expression: FreestandingMacroExpressionSyntax, position: int, cancellationToken?: CancellationToken) -> MacroTokenInfo? Gets token metadata at an authored position inside a token-tree macro, including token-tree macros nested in reported Raven fragments.
GetMacroTokens(expression: FreestandingMacroExpressionSyntax, cancellationToken?: CancellationToken) -> ImmutableArray<MacroTokenInfo> Gets the token stream and optional classifications for a token-tree macro invocation.
GetOperation(node: SyntaxNode, cancellationToken?: CancellationToken) -> IOperation? Gets the semantic operation corresponding to the specified syntax node.
GetType() -> Type Gets the System.Type of the current instance. Inherited from Object.GetType
GetTypeInfo(expr: ExpressionSyntax) -> TypeInfo Gets type information about an expression.
GetTypeInfo(typeSyntax: TypeSyntax) -> TypeInfo Gets type information about a type syntax.
ToString() -> string? Returns a string that represents the current object. Inherited from Object.ToString