VisualBasicExtensions 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 VisualBasicExtensions sealed
public sealed class VisualBasicExtensions
type VisualBasicExtensions = class
Public Module VisualBasicExtensions
- Inheritance
-
VisualBasicExtensions
Methods
Add(SyntaxTokenList, SyntaxToken[]) |
Add one or more tokens to the end of the list. |
AliasImports(Compilation) |
Gets the compilation AliasImports property. |
AnalyzeControlFlow(SemanticModel, StatementSyntax, StatementSyntax) |
Analyze control-flow within a part of a method body. |
AnalyzeControlFlow(SemanticModel, StatementSyntax) |
Analyze control-flow within a part of a method body. |
AnalyzeDataFlow(SemanticModel, ExpressionSyntax) |
Analyze data-flow within an expression. |
AnalyzeDataFlow(SemanticModel, StatementSyntax, StatementSyntax) |
Analyze data-flow within a set of contiguous statements. |
AnalyzeDataFlow(SemanticModel, StatementSyntax) |
Analyze data-flow within a statement. |
AssociatedField(IEventSymbol) | |
ClassifyConversion(Compilation, ITypeSymbol, ITypeSymbol) |
Determines what kind of conversion there is between the specified types. |
ClassifyConversion(SemanticModel, ExpressionSyntax, ITypeSymbol) |
Determines what kind of conversion there is between the expression syntax and a specified type. |
ClassifyConversion(SemanticModel, Int32, ExpressionSyntax, ITypeSymbol) |
Determines what kind of conversion there is between the expression syntax and a specified type. |
GetAggregateClauseSymbolInfo(SemanticModel, AggregateClauseSyntax, CancellationToken) |
Returns information about methods associated with AggregateClauseSyntax. |
GetAliasInfo(SemanticModel, IdentifierNameSyntax, CancellationToken) |
If "nameSyntax" resolves to an alias name, return the AliasSymbol corresponding to A. Otherwise return null. |
GetAwaitExpressionInfo(SemanticModel, AwaitExpressionSyntax, CancellationToken) |
Gets the corresponding AwaitExpressionInfo containing semantic info for a specified AwaitExpressionSyntax. |
GetBase(SyntaxToken) |
The source token base for Integer literals. Base can be Decimal, Hex or Octal. |
GetCollectionInitializerSymbolInfo(SemanticModel, ExpressionSyntax, CancellationToken) |
Returns what 'Add' method symbol(s), if any, corresponds to the given expression syntax within Initializer. |
GetCollectionRangeVariableSymbolInfo(SemanticModel, CollectionRangeVariableSyntax, CancellationToken) |
Returns information about methods associated with CollectionRangeVariableSyntax. |
GetCompilationUnitRoot(SyntaxTree) |
Gets the root CompilationUnitSyntax for a specified SyntaxTree. |
GetConversion(IConversionOperation) |
Gets the underlying Conversion information from an IConversionOperation that was created from Visual Basic code. |
GetConversion(SemanticModel, SyntaxNode, CancellationToken) |
Gets the corresponding TypeInfo containing semantic info for a specified ExpressionSyntax. |
GetDeclaredSymbol(SemanticModel, AccessorStatementSyntax, CancellationToken) |
Gets the corresponding MethodSymbol for a specified AccessorStatementSyntax. |
GetDeclaredSymbol(SemanticModel, AggregationRangeVariableSyntax, CancellationToken) |
Gets the corresponding RangeVariableSymbol for a specified AggregationRangeVariableSyntax. |
GetDeclaredSymbol(SemanticModel, AnonymousObjectCreationExpressionSyntax, CancellationToken) |
Gets the corresponding NamedTypeSymbol for a specified AnonymousObjectCreationExpressionSyntax. |
GetDeclaredSymbol(SemanticModel, CatchStatementSyntax, CancellationToken) |
Gets the corresponding LocalSymbol for a specified CatchStatementSyntax. |
GetDeclaredSymbol(SemanticModel, CollectionRangeVariableSyntax, CancellationToken) |
Gets the corresponding RangeVariableSymbol for a specified CollectionRangeVariableSyntax. |
GetDeclaredSymbol(SemanticModel, DeclareStatementSyntax, CancellationToken) |
Gets the corresponding symbol for a specified DeclareStatementSyntax. |
GetDeclaredSymbol(SemanticModel, DelegateStatementSyntax, CancellationToken) |
Gets the corresponding NamedTypeSymbol for a specified DelegateStatementSyntax. |
GetDeclaredSymbol(SemanticModel, EnumBlockSyntax, CancellationToken) |
Gets the corresponding NamedTypeSymbol for a specified EnumBlockSyntax. |
GetDeclaredSymbol(SemanticModel, EnumMemberDeclarationSyntax, CancellationToken) |
Gets the corresponding FieldSymbol for a specified EnumMemberDeclarationSyntax. |
GetDeclaredSymbol(SemanticModel, EnumStatementSyntax, CancellationToken) |
Gets the corresponding NamedTypeSymbol for a specified EnumStatementSyntax. |
GetDeclaredSymbol(SemanticModel, EventBlockSyntax, CancellationToken) |
Gets the corresponding EventSymbol for a specified EventBlockSyntax. |
GetDeclaredSymbol(SemanticModel, EventStatementSyntax, CancellationToken) |
Gets the corresponding EventSymbol for a specified EventStatementSyntax. |
GetDeclaredSymbol(SemanticModel, ExpressionRangeVariableSyntax, CancellationToken) |
Gets the corresponding RangeVariableSymbol for a specified ExpressionRangeVariableSyntax. |
GetDeclaredSymbol(SemanticModel, FieldInitializerSyntax, CancellationToken) |
Gets the corresponding PropertySymbol for a specified FieldInitializerSyntax. |
GetDeclaredSymbol(SemanticModel, LabelStatementSyntax, CancellationToken) |
Gets the corresponding LabelSymbol for a specified LabelStatementSyntax. |
GetDeclaredSymbol(SemanticModel, MethodBlockBaseSyntax, CancellationToken) |
Gets the corresponding MethodSymbol for a specified MethodBlockBaseSyntax. |
GetDeclaredSymbol(SemanticModel, MethodStatementSyntax, CancellationToken) |
Gets the corresponding MethodSymbol for a specified MethodStatementSyntax. |
GetDeclaredSymbol(SemanticModel, ModifiedIdentifierSyntax, CancellationToken) |
Gets the corresponding symbol for a specified identifier. |
GetDeclaredSymbol(SemanticModel, NamespaceBlockSyntax, CancellationToken) |
Gets the corresponding NamespaceSymbol for a specified NamespaceBlockSyntax. |
GetDeclaredSymbol(SemanticModel, NamespaceStatementSyntax, CancellationToken) |
Gets the corresponding NamespaceSymbol for a specified NamespaceStatementSyntax. |
GetDeclaredSymbol(SemanticModel, OperatorStatementSyntax, CancellationToken) |
Gets the corresponding MethodSymbol for a specified OperatorStatementSyntax. |
GetDeclaredSymbol(SemanticModel, ParameterSyntax, CancellationToken) |
Gets the corresponding ParameterSymbol for a specified ParameterSyntax. |
GetDeclaredSymbol(SemanticModel, PropertyBlockSyntax, CancellationToken) |
Gets the corresponding PropertySymbol for a specified PropertyBlockSyntax. |
GetDeclaredSymbol(SemanticModel, PropertyStatementSyntax, CancellationToken) |
Gets the corresponding PropertySymbol for a specified PropertyStatementSyntax. |
GetDeclaredSymbol(SemanticModel, SimpleImportsClauseSyntax, CancellationToken) |
Gets the corresponding AliasSymbol for a specified AliasImportsClauseSyntax. |
GetDeclaredSymbol(SemanticModel, SubNewStatementSyntax, CancellationToken) |
Gets the corresponding MethodSymbol for a specified SubNewStatementSyntax. |
GetDeclaredSymbol(SemanticModel, TupleElementSyntax, CancellationToken) |
Gets the corresponding symbol for a specified tuple element. |
GetDeclaredSymbol(SemanticModel, TypeBlockSyntax, CancellationToken) |
Gets the corresponding NamedTypeSymbol for a specified TypeBlockSyntax. |
GetDeclaredSymbol(SemanticModel, TypeParameterSyntax, CancellationToken) |
Gets the corresponding TypeParameterSymbol Symbol for a specified TypeParameterSyntax. |
GetDeclaredSymbol(SemanticModel, TypeStatementSyntax, CancellationToken) |
Gets the corresponding NamedTypeSymbol for a specified TypeStatementSyntax. |
GetDirectives(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>) |
Gets the DirectiveTriviaSyntax items for a specified SyntaxNode with optional filtering. |
GetFieldAttributes(IEventSymbol) | |
GetFirstDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>) |
Gets the first DirectiveTriviaSyntax item for a specified SyntaxNode. |
GetForEachStatementInfo(SemanticModel, ForEachBlockSyntax) |
Gets the corresponding ForEachStatementInfo containing semantic info for a specified ForBlockSyntax. |
GetForEachStatementInfo(SemanticModel, ForEachStatementSyntax) |
Gets the corresponding ForEachStatementInfo containing semantic info for a specified ForEachStatementSyntax. |
GetIdentifierText(SyntaxToken) |
Returns the Identifiertext for a specified SyntaxToken. |
GetInConversion(IArgumentOperation) |
Gets the underlying Conversion information for InConversion of IArgumentOperation that was created from Visual Basic code. |
GetInConversion(ICompoundAssignmentOperation) |
Gets the underlying Conversion information from this ICompoundAssignmentOperation. This conversion is applied before the operator is applied to the result of this conversion and Value. |
GetLastDirective(SyntaxNode, Func<DirectiveTriviaSyntax,Boolean>) |
Gets the last DirectiveTriviaSyntax item for a specified SyntaxNode. |
GetMemberGroup(SemanticModel, AttributeSyntax, CancellationToken) |
Gets the corresponding ImmutableArray of Symbols for a specified AttributeSyntax. |
GetMemberGroup(SemanticModel, ExpressionSyntax, CancellationToken) |
Gets the corresponding ImmutableArray of Symbols for a specified ExpressionSyntax. |
GetModuleMembers(INamespaceSymbol, String) |
Gets all module members in a specified namespace. |
GetModuleMembers(INamespaceSymbol) |
Gets all module members in a namespace. |
GetOutConversion(IArgumentOperation) |
Gets the underlying Conversion information for OutConversion of IArgumentOperation that was created from Visual Basic code. |
GetOutConversion(ICompoundAssignmentOperation) |
Gets the underlying Conversion information from this ICompoundAssignmentOperation. This conversion is applied after the operator is applied, before the result is assigned to Target. |
GetPreprocessingSymbolInfo(SemanticModel, IdentifierNameSyntax) |
If the given node is within a preprocessing directive, gets the preprocessing symbol info for it. |
GetSpecialType(Compilation, SpecialType) |
Gets the special type symbol in current compilation. |
GetSpeculativeAliasInfo(SemanticModel, Int32, IdentifierNameSyntax, 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. |
GetSpeculativeConversion(SemanticModel, Int32, ExpressionSyntax, SpeculativeBindingOption) | |
GetSpeculativeMemberGroup(SemanticModel, Int32, ExpressionSyntax) |
Gets the corresponding ImmutableArray of Symbols for a speculating an ExpressionSyntax at a given position, used in Semantic Info for items not appearing in source code. |
GetSpeculativeSymbolInfo(SemanticModel, Int32, AttributeSyntax) |
Gets the corresponding SymbolInfo containing semantic info for specified AttributeSyntax at a given position, used in Semantic Info for items not appearing in source code. |
GetSpeculativeSymbolInfo(SemanticModel, Int32, ExpressionSyntax, SpeculativeBindingOption) |
Gets the corresponding SymbolInfo containing semantic info for a specified AttributeSyntax. |
GetSpeculativeTypeInfo(SemanticModel, Int32, ExpressionSyntax, SpeculativeBindingOption) |
Gets the corresponding TypeInfo containing semantic info for a speculating an ExpressionSyntax at a given position, used in Semantic Info for items not appearing in source code. |
GetSymbolInfo(SemanticModel, AttributeSyntax, CancellationToken) |
Gets the corresponding SymbolInfo containing semantic info for a specified AttributeSyntax. |
GetSymbolInfo(SemanticModel, CrefReferenceSyntax, CancellationToken) |
Gets the corresponding SymbolInfo containing semantic info for a specified CrefReferenceSyntax. |
GetSymbolInfo(SemanticModel, ExpressionRangeVariableSyntax, CancellationToken) |
Returns Select method associated with ExpressionRangeVariableSyntax within a LetClauseSyntax, or Microsoft.CodeAnalysis.SymbolInfo.None otherwise if none is. |
GetSymbolInfo(SemanticModel, ExpressionSyntax, CancellationToken) |
Gets the corresponding SymbolInfo containing semantic info for a specified ExpressionSyntax. |
GetSymbolInfo(SemanticModel, FunctionAggregationSyntax, CancellationToken) |
Returns aggregate function associated with FunctionAggregationSyntax. |
GetSymbolInfo(SemanticModel, OrderingSyntax, CancellationToken) |
Returns OrderBy/OrderByDescending/ThenBy/ThenByDescending method associated with OrderingSyntax. |
GetSymbolInfo(SemanticModel, QueryClauseSyntax, CancellationToken) |
Returns symbol information for a query clause. |
GetTypeCharacter(SyntaxToken) |
Returns the Type character for a given syntax token. This returns type character for Identifiers or Integer, Floating Point or Decimal Literals. Examples: Dim a$ or Dim l1 = 1L |
GetTypeInfo(SemanticModel, AttributeSyntax, CancellationToken) |
Gets the corresponding TypeInfo containing semantic info for a specified AttributeSyntax. |
GetTypeInfo(SemanticModel, ExpressionSyntax, CancellationToken) | |
HandledEvents(IMethodSymbol) | |
HasAssociatedField(IEventSymbol) | |
Insert(SyntaxTokenList, Int32, SyntaxToken[]) |
Insert one or more tokens in the list at the specified index. |
IsBracketed(SyntaxToken) |
Checks to see if SyntaxToken is a bracketed identifier. |
IsCatch(ILocalSymbol) | |
IsContextualKeyword(SyntaxToken) |
Determines if the token represents a contextual keyword |
IsDefault(IPropertySymbol) | |
IsFor(ILocalSymbol) | |
IsForEach(ILocalSymbol) | |
IsImplicitlyDeclared(IEventSymbol) | |
IsKeyword(SyntaxToken) |
Determines if the token represents a reserved or contextual keyword |
IsMe(IParameterSymbol) | |
IsMustOverride(ISymbol) | |
IsNotOverridable(ISymbol) | |
IsOverloads(IMethodSymbol) | |
IsOverloads(IPropertySymbol) | |
IsOverridable(ISymbol) | |
IsOverrides(ISymbol) | |
IsPreprocessorKeyword(SyntaxToken) |
Determines if the token represents a preprocessor keyword |
IsReservedKeyword(SyntaxToken) |
Determines if the token represents a reserved keyword |
IsShared(ISymbol) |
Determines if symbol is Shared. |
Kind(SyntaxNode) |
Returns SyntaxKind for SyntaxNode from RawKind property. |
Kind(SyntaxNodeOrToken) |
Returns SyntaxKind for SyntaxNodeOrToken from RawKind property. |
Kind(SyntaxToken) |
Returns SyntaxKind for SyntaxToken from RawKind property. |
Kind(SyntaxTrivia) |
Returns SyntaxKind for SyntaxTrivia from RawKind property. |
MemberImports(Compilation) |
Gets the compilation MemberImports property. |
OptionCompareText(SemanticModel) |
Gets the Semantic Model OptionCompareText property. |
OptionExplicit(SemanticModel) |
Gets the Semantic Model OptionExplicit property. |
OptionInfer(SemanticModel) |
Gets the Semantic Model OptionInfer property. |
OptionStrict(SemanticModel) |
Gets the Semantic Model OptionStrict property. |
ReplaceTrivia(SyntaxToken, IEnumerable<SyntaxTrivia>, Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>) |
Replaces trivia on a specified SyntaxToken. |
ReplaceTrivia(SyntaxToken, SyntaxTrivia, SyntaxTrivia) |
Replaces trivia on a specified SyntaxToken. |
RootNamespace(Compilation) |
Gets the compilation RootNamespace property. |
TryGetSpeculativeSemanticModel(SemanticModel, Int32, AttributeSyntax, SemanticModel) |
Gets the SemanticModel for a AttributeSyntax at a given position, used in Semantic Info for items not appearing in source code. |
TryGetSpeculativeSemanticModel(SemanticModel, Int32, EqualsValueSyntax, SemanticModel) |
Gets the SemanticModel for a EqualsValueSyntax at a given position, used in Semantic Info for items not appearing in source code. |
TryGetSpeculativeSemanticModel(SemanticModel, Int32, ExecutableStatementSyntax, SemanticModel) |
Gets the SemanticModel for a ExecutableStatementSyntax at a given position, used in Semantic Info for items not appearing in source code. |
TryGetSpeculativeSemanticModel(SemanticModel, Int32, RangeArgumentSyntax, SemanticModel) |
Gets the SemanticModel for a RangeArgumentSyntax at a given position, used in Semantic Info for items not appearing in source code. |
TryGetSpeculativeSemanticModel(SemanticModel, Int32, TypeSyntax, SemanticModel, SpeculativeBindingOption) |
Gets the SemanticModel for a TypeSyntax at a given position, used in Semantic Info for items not appearing in source code. |
TryGetSpeculativeSemanticModelForMethodBody(SemanticModel, Int32, MethodBlockBaseSyntax, SemanticModel) |
Gets the SemanticModel for a MethodBlockBaseSyntax at a given position, used in Semantic Info for items not appearing in source code. |