Click or drag to resize

VisualBasicExtensions Class



Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.VisualBasicVisualBasicExtensions

Namespace:  Microsoft.CodeAnalysis.VisualBasic
Assembly:  Microsoft.CodeAnalysis.VisualBasic (in Microsoft.CodeAnalysis.VisualBasic.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class VisualBasicExtensions

The VisualBasicExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdd
Add one or more tokens to the end of the list.
Public methodStatic memberAliasImports
Gets the compilation AliasImports property.
Public methodStatic memberAnalyzeControlFlow(SemanticModel, StatementSyntax)
Analyze control-flow within a part of a method body.
Public methodStatic memberAnalyzeControlFlow(SemanticModel, StatementSyntax, StatementSyntax)
Analyze control-flow within a part of a method body.
Public methodStatic memberAnalyzeDataFlow(SemanticModel, ExpressionSyntax)
Analyze data-flow within an expression.
Public methodStatic memberAnalyzeDataFlow(SemanticModel, StatementSyntax)
Analyze data-flow within a statement.
Public methodStatic memberAnalyzeDataFlow(SemanticModel, StatementSyntax, StatementSyntax)
Analyze data-flow within a set of contiguous statements.
Public methodStatic memberAssociatedField
Public methodStatic memberClassifyConversion(Compilation, ITypeSymbol, ITypeSymbol)
Determines what kind of conversion there is between the specified types.
Public methodStatic memberClassifyConversion(SemanticModel, ExpressionSyntax, ITypeSymbol)
Determines what kind of conversion there is between the expression syntax and a specified type.
Public methodStatic memberClassifyConversion(SemanticModel, Int32, ExpressionSyntax, ITypeSymbol)
Determines what kind of conversion there is between the expression syntax and a specified type.
Public methodStatic memberGetAggregateClauseSymbolInfo
Returns information about methods associated with AggregateClauseSyntax.
Public methodStatic memberGetAliasInfo
If "nameSyntax" resolves to an alias name, return the AliasSymbol corresponding to A. Otherwise return null.
Public methodStatic memberGetAwaitExpressionInfo
Gets the corresponding AwaitExpressionInfo containing semantic info for a specified AwaitExpressionSyntax.
Public methodStatic memberGetBase
Public methodStatic memberGetCollectionInitializerSymbolInfo
Returns what 'Add' method symbol(s), if any, corresponds to the given expression syntax within Initializer.
Public methodStatic memberGetCollectionRangeVariableSymbolInfo
Returns information about methods associated with CollectionRangeVariableSyntax.
Public methodStatic memberGetCompilationUnitRoot
Gets the root CompilationUnitSyntax for a specified SyntaxTree.
Public methodStatic memberGetConversion
Gets the corresponding TypeInfo containing semantic info for a specified ExpressionSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, AccessorStatementSyntax, CancellationToken)
Gets the corresponding MethodSymbol for a specified AccessorStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, AggregationRangeVariableSyntax, CancellationToken)
Gets the corresponding RangeVariableSymbol for a specified AggregationRangeVariableSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, AnonymousObjectCreationExpressionSyntax, CancellationToken)
Gets the corresponding NamedTypeSymbol for a specified AnonymousObjectCreationExpressionSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, CatchStatementSyntax, CancellationToken)
Gets the corresponding LocalSymbol for a specified CatchStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, CollectionRangeVariableSyntax, CancellationToken)
Gets the corresponding RangeVariableSymbol for a specified CollectionRangeVariableSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, DeclareStatementSyntax, CancellationToken)
Gets the corresponding symbol for a specified DeclareStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, DelegateStatementSyntax, CancellationToken)
Gets the corresponding NamedTypeSymbol for a specified DelegateStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, EnumBlockSyntax, CancellationToken)
Gets the corresponding NamedTypeSymbol for a specified EnumBlockSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, EnumMemberDeclarationSyntax, CancellationToken)
Gets the corresponding FieldSymbol for a specified EnumMemberDeclarationSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, EnumStatementSyntax, CancellationToken)
Gets the corresponding NamedTypeSymbol for a specified EnumStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, EventBlockSyntax, CancellationToken)
Gets the corresponding EventSymbol for a specified EventBlockSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, EventStatementSyntax, CancellationToken)
Gets the corresponding EventSymbol for a specified EventStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, ExpressionRangeVariableSyntax, CancellationToken)
Gets the corresponding RangeVariableSymbol for a specified ExpressionRangeVariableSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, FieldInitializerSyntax, CancellationToken)
Gets the corresponding PropertySymbol for a specified FieldInitializerSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, LabelStatementSyntax, CancellationToken)
Gets the corresponding LabelSymbol for a specified LabelStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, MethodBlockBaseSyntax, CancellationToken)
Gets the corresponding MethodSymbol for a specified MethodBlockBaseSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, MethodStatementSyntax, CancellationToken)
Gets the corresponding MethodSymbol for a specified MethodStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, ModifiedIdentifierSyntax, CancellationToken)
Gets the corresponding symbol for a specified identifier.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, NamespaceBlockSyntax, CancellationToken)
Gets the corresponding NamespaceSymbol for a specified NamespaceBlockSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, NamespaceStatementSyntax, CancellationToken)
Gets the corresponding NamespaceSymbol for a specified NamespaceStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, OperatorStatementSyntax, CancellationToken)
Gets the corresponding MethodSymbol for a specified OperatorStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, ParameterSyntax, CancellationToken)
Gets the corresponding ParameterSymbol for a specified ParameterSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, PropertyBlockSyntax, CancellationToken)
Gets the corresponding PropertySymbol for a specified PropertyBlockSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, PropertyStatementSyntax, CancellationToken)
Gets the corresponding PropertySymbol for a specified PropertyStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, SimpleImportsClauseSyntax, CancellationToken)
Gets the corresponding AliasSymbol for a specified AliasImportsClauseSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, SubNewStatementSyntax, CancellationToken)
Gets the corresponding MethodSymbol for a specified SubNewStatementSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, TupleElementSyntax, CancellationToken)
Gets the corresponding symbol for a specified tuple element.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, TypeBlockSyntax, CancellationToken)
Gets the corresponding NamedTypeSymbol for a specified TypeBlockSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, TypeParameterSyntax, CancellationToken)
Gets the corresponding TypeParameterSymbol Symbol for a specified TypeParameterSyntax.
Public methodStatic memberGetDeclaredSymbol(SemanticModel, TypeStatementSyntax, CancellationToken)
Gets the corresponding NamedTypeSymbol for a specified TypeStatementSyntax.
Public methodStatic memberGetDirectives
Public methodStatic memberGetFieldAttributes
Public methodStatic memberGetFirstDirective
Public methodStatic memberGetForEachStatementInfo(SemanticModel, ForEachBlockSyntax)
Gets the corresponding ForEachStatementInfo containing semantic info for a specified ForBlockSyntax.
Public methodStatic memberGetForEachStatementInfo(SemanticModel, ForEachStatementSyntax)
Gets the corresponding ForEachStatementInfo containing semantic info for a specified ForEachStatementSyntax.
Public methodStatic memberGetIdentifierText
Returns the Identifiertext for a specified SyntaxToken.
Public methodStatic memberGetLastDirective
Public methodStatic memberGetMemberGroup(SemanticModel, AttributeSyntax, CancellationToken)
Gets the corresponding ImmutableArray of Symbols for a specified AttributeSyntax.
Public methodStatic memberGetMemberGroup(SemanticModel, ExpressionSyntax, CancellationToken)
Gets the corresponding ImmutableArray of Symbols for a specified ExpressionSyntax.
Public methodStatic memberGetModuleMembers(INamespaceSymbol)
Gets all module members in a namespace.
Public methodStatic memberGetModuleMembers(INamespaceSymbol, String)
Gets all module members in a specified namespace.
Public methodStatic memberGetPreprocessingSymbolInfo
If the given node is within a preprocessing directive, gets the preprocessing symbol info for it.
Public methodStatic memberGetSpecialType
Gets the special type symbol in current compilation.
Public methodStatic memberGetSpeculativeAliasInfo
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.
Public methodStatic memberGetSpeculativeConversion
Public methodStatic memberGetSpeculativeMemberGroup
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.
Public methodStatic memberGetSpeculativeSymbolInfo(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.
Public methodStatic memberGetSpeculativeSymbolInfo(SemanticModel, Int32, ExpressionSyntax, SpeculativeBindingOption)
Gets the corresponding SymbolInfo containing semantic info for a specified AttributeSyntax.
Public methodStatic memberGetSpeculativeTypeInfo
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.
Public methodStatic memberGetSymbolInfo(SemanticModel, AttributeSyntax, CancellationToken)
Gets the corresponding SymbolInfo containing semantic info for a specified AttributeSyntax.
Public methodStatic memberGetSymbolInfo(SemanticModel, CrefReferenceSyntax, CancellationToken)
Gets the corresponding SymbolInfo containing semantic info for a specified CrefReferenceSyntax.
Public methodStatic memberGetSymbolInfo(SemanticModel, ExpressionRangeVariableSyntax, CancellationToken)
Returns Select method associated with ExpressionRangeVariableSyntax within a LetClauseSyntax, or None otherwise if none is.
Public methodStatic memberGetSymbolInfo(SemanticModel, ExpressionSyntax, CancellationToken)
Gets the corresponding SymbolInfo containing semantic info for a specified ExpressionSyntax.
Public methodStatic memberGetSymbolInfo(SemanticModel, FunctionAggregationSyntax, CancellationToken)
Returns aggregate function associated with FunctionAggregationSyntax.
Public methodStatic memberGetSymbolInfo(SemanticModel, OrderingSyntax, CancellationToken)
Returns OrderBy/OrderByDescending/ThenBy/ThenByDescending method associated with OrderingSyntax.
Public methodStatic memberGetSymbolInfo(SemanticModel, QueryClauseSyntax, CancellationToken)
Returns symbol information for a query clause.
Public methodStatic memberGetTypeCharacter
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
Public methodStatic memberGetTypeInfo(SemanticModel, AttributeSyntax, CancellationToken)
Gets the corresponding TypeInfo containing semantic info for a specified AttributeSyntax.
Public methodStatic memberGetTypeInfo(SemanticModel, ExpressionSyntax, CancellationToken)
Public methodStatic memberHandledEvents
Public methodStatic memberHasAssociatedField
Public methodStatic memberInsert
Insert one or more tokens in the list at the specified index.
Public methodStatic memberIsBracketed
Checks to see if SyntaxToken is a bracketed identifier.
Public methodStatic memberIsCatch
Public methodStatic memberIsContextualKeyword
Determines if the token represents a contextual keyword
Public methodStatic memberIsDefault
Public methodStatic memberIsFor
Public methodStatic memberIsForEach
Public methodStatic memberIsImplicitlyDeclared
Public methodStatic memberIsKeyword
Determines if the token represents a reserved or contextual keyword
Public methodStatic memberIsMe
Public methodStatic memberIsMustOverride
Public methodStatic memberIsNotOverridable
Public methodStatic memberIsOverloads(IMethodSymbol)
Public methodStatic memberIsOverloads(IPropertySymbol)
Public methodStatic memberIsOverridable
Public methodStatic memberIsOverrides
Public methodStatic memberIsPreprocessorKeyword
Determines if the token represents a preprocessor keyword
Public methodStatic memberIsReservedKeyword
Determines if the token represents a reserved keyword
Public methodStatic memberIsShared
Determines if symbol is Shared.
Public methodStatic memberKind(SyntaxNode)
Returns SyntaxKind for SyntaxNode from RawKind property.
Public methodStatic memberKind(SyntaxNodeOrToken)
Returns SyntaxKind for SyntaxNodeOrToken from RawKind property.
Public methodStatic memberKind(SyntaxToken)
Returns SyntaxKind for SyntaxToken from RawKind property.
Public methodStatic memberKind(SyntaxTrivia)
Returns SyntaxKind for SyntaxTrivia nodes.
Public methodStatic memberMemberImports
Gets the compilation MemberImports property.
Public methodStatic memberOptionCompareText
Gets the Semantic Model OptionCompareText property.
Public methodStatic memberOptionExplicit
Gets the Semantic Model OptionExplicit property.
Public methodStatic memberOptionInfer
Gets the Semantic Model OptionInfer property.
Public methodStatic memberOptionStrict
Gets the Semantic Model OptionStrict property.
Public methodStatic memberReplaceTrivia(SyntaxToken, SyntaxTrivia, SyntaxTrivia)
Replaces trivia on a specified SyntaxToken.
Public methodStatic memberReplaceTrivia(SyntaxToken, IEnumerableT, Void)
Public methodStatic memberRootNamespace
Gets the compilation RootNamespace property.
Public methodStatic memberTryGetSpeculativeSemanticModel(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.
Public methodStatic memberTryGetSpeculativeSemanticModel(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.
Public methodStatic memberTryGetSpeculativeSemanticModel(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.
Public methodStatic memberTryGetSpeculativeSemanticModel(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.
Public methodStatic memberTryGetSpeculativeSemanticModel(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.
Public methodStatic memberTryGetSpeculativeSemanticModelForMethodBody
Gets the SemanticModel for a MethodBlockBaseSyntax at a given position, used in Semantic Info for items not appearing in source code.
Top
See Also