Freigeben über


ModelExtensions Class

Definition

public ref class ModelExtensions abstract sealed
public static class ModelExtensions
type ModelExtensions = class
Public Module ModelExtensions
Inheritance
ModelExtensions

Methods

AnalyzeControlFlow(SemanticModel, SyntaxNode, SyntaxNode)

Analyze control-flow within a part of a method body.

AnalyzeControlFlow(SemanticModel, SyntaxNode)

Analyze control-flow within a part of a method body.

AnalyzeDataFlow(SemanticModel, SyntaxNode, SyntaxNode)

Analyze data-flow within a part of a method body.

AnalyzeDataFlow(SemanticModel, SyntaxNode)

Analyze data-flow within a part of a method body. note (for C#): ConstructorInitializerSyntax and PrimaryConstructorBaseTypeSyntax are treated by this API as regular statements

GetAliasInfo(SemanticModel, SyntaxNode, CancellationToken)

If "nameSyntax" resolves to an alias name, return the IAliasSymbol corresponding to A. Otherwise return null.

GetDeclaredSymbol(SemanticModel, SyntaxNode, CancellationToken)

Gets the symbol associated with a declaration syntax node.

GetMemberGroup(SemanticModel, SyntaxNode, CancellationToken)

Gets a list of method or indexed property symbols for a syntax node.

GetSpeculativeAliasInfo(SemanticModel, Int32, SyntaxNode, SpeculativeBindingOption)

Binds the name in the context of the specified location and sees if it resolves to an alias name. If it does, return the AliasSymbol corresponding to it. Otherwise, return null.

GetSpeculativeSymbolInfo(SemanticModel, Int32, SyntaxNode, SpeculativeBindingOption)

Binds the node in the context of the specified location and get semantic information such as type, symbols and diagnostics. This method is used to get semantic information about an expression that did not actually appear in the source code.

GetSpeculativeTypeInfo(SemanticModel, Int32, SyntaxNode, SpeculativeBindingOption)

Binds the node in the context of the specified location and get semantic information such as type, symbols and diagnostics. This method is used to get semantic information about an expression that did not actually appear in the source code.

GetSymbolInfo(SemanticModel, SyntaxNode, CancellationToken)

Gets symbol information about a syntax node.

GetTypeInfo(SemanticModel, SyntaxNode, CancellationToken)

Gets type information about a syntax node.

Applies to