ModelExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class ModelExtensions abstract sealed
public static class ModelExtensions
type ModelExtensions = class
Public Module ModelExtensions
- Inheritance
-
ModelExtensions
Methods
AnalyzeControlFlow(SemanticModel, SyntaxNode) |
Analyze control-flow within a part of a method body. |
AnalyzeControlFlow(SemanticModel, SyntaxNode, SyntaxNode) |
Analyze control-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 |
AnalyzeDataFlow(SemanticModel, SyntaxNode, SyntaxNode) |
Analyze data-flow within a part of a method body. |
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
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla