4 types derived from TypeStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Syntax.Generated.vb (4)
3166Inherits TypeStatementSyntax 3418Inherits TypeStatementSyntax 3670Inherits TypeStatementSyntax 3922Inherits TypeStatementSyntax
4 instantiations of TypeStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Syntax.Generated.vb (4)
3170MyBase.New(green, parent, startLocation) 3422MyBase.New(green, parent, startLocation) 3674MyBase.New(green, parent, startLocation) 3926MyBase.New(green, parent, startLocation)
149 references to TypeStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (78)
Binding\BinderFactory.vb (2)
69Public Function GetNamedTypeBinder(node As TypeStatementSyntax) As Binder 198Dim declarationSyntax = DirectCast(node, TypeStatementSyntax)
Binding\MemberSemanticModel.vb (1)
469Public Overloads Overrides Function GetDeclaredSymbol(declarationSyntax As TypeStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol
Compilation\SemanticModel.vb (4)
2550Public MustOverride Overloads Function GetDeclaredSymbol(declarationSyntax As TypeStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol 3276Return Me.GetDeclaredSymbol(DirectCast(node, TypeStatementSyntax), cancellationToken) 3343Dim td = TryCast(node, TypeStatementSyntax) 3532If TypeOf declaringSyntax Is TypeStatementSyntax Then
Compilation\SpeculativeSemanticModelWithMemberModel.vb (1)
153Public Overloads Overrides Function GetDeclaredSymbol(declarationSyntax As TypeStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol
Compilation\SyntaxTreeSemanticModel.vb (3)
899Public Overloads Overrides Function GetDeclaredSymbol(declarationSyntax As TypeStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol 1118ElseIf TypeOf typeParamList.Parent Is TypeStatementSyntax Then 1119symbol = GetDeclaredSymbol(DirectCast(typeParamList.Parent, TypeStatementSyntax), cancellationToken)
Declarations\DeclarationTreeBuilder.vb (1)
487Dim declarationSyntax As TypeStatementSyntax = typeBlockSyntax.BlockStatement
Generated\Syntax.xml.Syntax.Generated.vb (42)
3054Public Function WithAttributeLists(attributeLists As SyntaxList(Of AttributeListSyntax)) As TypeStatementSyntax 3057Friend MustOverride Function WithAttributeListsCore(attributeLists As SyntaxList(Of AttributeListSyntax)) As TypeStatementSyntax 3059Public Shadows Function AddAttributeLists(ParamArray items As AttributeListSyntax()) As TypeStatementSyntax 3062Friend MustOverride Function AddAttributeListsCore(ParamArray items As AttributeListSyntax()) As TypeStatementSyntax 3089Public Function WithModifiers(modifiers As SyntaxTokenList) As TypeStatementSyntax 3092Friend MustOverride Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 3094Public Shadows Function AddModifiers(ParamArray items As SyntaxToken()) As TypeStatementSyntax 3097Friend MustOverride Function AddModifiersCore(ParamArray items As SyntaxToken()) As TypeStatementSyntax 3116Public Function WithIdentifier(identifier As SyntaxToken) As TypeStatementSyntax 3119Friend MustOverride Function WithIdentifierCore(identifier As SyntaxToken) As TypeStatementSyntax 3143Public Function WithTypeParameterList(typeParameterList As TypeParameterListSyntax) As TypeStatementSyntax 3146Friend MustOverride Function WithTypeParameterListCore(typeParameterList As TypeParameterListSyntax) As TypeStatementSyntax 3148Public Shadows Function AddTypeParameterListParameters(ParamArray items As TypeParameterSyntax()) As TypeStatementSyntax 3151Friend MustOverride Function AddTypeParameterListParametersCore(ParamArray items As TypeParameterSyntax()) As TypeStatementSyntax 3197Friend Overrides Function WithAttributeListsCore(attributeLists As SyntaxList(Of AttributeListSyntax)) As TypeStatementSyntax 3214Friend Overrides Function AddAttributeListsCore(ParamArray items As AttributeListSyntax()) As TypeStatementSyntax 3239Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 3256Friend Overrides Function AddModifiersCore(ParamArray items As SyntaxToken()) As TypeStatementSyntax 3291Friend Overrides Function WithIdentifierCore(identifier As SyntaxToken) As TypeStatementSyntax 3321Friend Overrides Function WithTypeParameterListCore(typeParameterList As TypeParameterListSyntax) As TypeStatementSyntax 3339Friend Overrides Function AddTypeParameterListParametersCore(ParamArray items As TypeParameterSyntax()) As TypeStatementSyntax 3449Friend Overrides Function WithAttributeListsCore(attributeLists As SyntaxList(Of AttributeListSyntax)) As TypeStatementSyntax 3466Friend Overrides Function AddAttributeListsCore(ParamArray items As AttributeListSyntax()) As TypeStatementSyntax 3491Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 3508Friend Overrides Function AddModifiersCore(ParamArray items As SyntaxToken()) As TypeStatementSyntax 3543Friend Overrides Function WithIdentifierCore(identifier As SyntaxToken) As TypeStatementSyntax 3573Friend Overrides Function WithTypeParameterListCore(typeParameterList As TypeParameterListSyntax) As TypeStatementSyntax 3591Friend Overrides Function AddTypeParameterListParametersCore(ParamArray items As TypeParameterSyntax()) As TypeStatementSyntax 3701Friend Overrides Function WithAttributeListsCore(attributeLists As SyntaxList(Of AttributeListSyntax)) As TypeStatementSyntax 3718Friend Overrides Function AddAttributeListsCore(ParamArray items As AttributeListSyntax()) As TypeStatementSyntax 3743Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 3760Friend Overrides Function AddModifiersCore(ParamArray items As SyntaxToken()) As TypeStatementSyntax 3795Friend Overrides Function WithIdentifierCore(identifier As SyntaxToken) As TypeStatementSyntax 3825Friend Overrides Function WithTypeParameterListCore(typeParameterList As TypeParameterListSyntax) As TypeStatementSyntax 3843Friend Overrides Function AddTypeParameterListParametersCore(ParamArray items As TypeParameterSyntax()) As TypeStatementSyntax 3953Friend Overrides Function WithAttributeListsCore(attributeLists As SyntaxList(Of AttributeListSyntax)) As TypeStatementSyntax 3970Friend Overrides Function AddAttributeListsCore(ParamArray items As AttributeListSyntax()) As TypeStatementSyntax 3995Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 4012Friend Overrides Function AddModifiersCore(ParamArray items As SyntaxToken()) As TypeStatementSyntax 4047Friend Overrides Function WithIdentifierCore(identifier As SyntaxToken) As TypeStatementSyntax 4077Friend Overrides Function WithTypeParameterListCore(typeParameterList As TypeParameterListSyntax) As TypeStatementSyntax 4095Friend Overrides Function AddTypeParameterListParametersCore(ParamArray items As TypeParameterSyntax()) As TypeStatementSyntax
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1439Friend Shared Function FindSymbolFromSyntax(declarationSyntax As TypeStatementSyntax,
Syntax\SyntaxFactory.vb (2)
419Public Shared Function TypeBlock(ByVal blockKind As SyntaxKind, ByVal begin As TypeStatementSyntax, Optional ByVal [inherits] As SyntaxList(Of InheritsStatementSyntax) = Nothing, Optional ByVal [implements] As SyntaxList(Of ImplementsStatementSyntax) = Nothing, Optional ByVal members As SyntaxList(Of StatementSyntax) = Nothing, Optional ByVal [end] As EndBlockStatementSyntax = Nothing) As TypeBlockSyntax 438Public Shared Function TypeStatement(ByVal statementKind As SyntaxKind, Optional ByVal attributes As SyntaxList(Of AttributeListSyntax) = Nothing, Optional ByVal modifiers As SyntaxTokenList = Nothing, Optional ByVal keyword As SyntaxToken = Nothing, Optional ByVal identifier As SyntaxToken = Nothing, Optional ByVal typeParameterList As TypeParameterListSyntax = Nothing) As TypeStatementSyntax
Syntax\TypeBlockSyntax.vb (12)
17Public MustOverride ReadOnly Property BlockStatement As TypeStatementSyntax 28Public MustOverride Function WithBlockStatement(blockStatement As TypeStatementSyntax) As TypeBlockSyntax 38Public ReadOnly Property Begin As TypeStatementSyntax 46Public Function WithBegin(begin As TypeStatementSyntax) As TypeBlockSyntax 68Public Overrides ReadOnly Property BlockStatement As TypeStatementSyntax 80Public Overrides Function WithBlockStatement(blockStatement As TypeStatementSyntax) As TypeBlockSyntax 120Public Overrides ReadOnly Property BlockStatement As TypeStatementSyntax 132Public Overrides Function WithBlockStatement(blockStatement As TypeStatementSyntax) As TypeBlockSyntax 172Public Overrides ReadOnly Property BlockStatement As TypeStatementSyntax 184Public Overrides Function WithBlockStatement(blockStatement As TypeStatementSyntax) As TypeBlockSyntax 224Public Overrides ReadOnly Property BlockStatement As TypeStatementSyntax 236Public Overrides Function WithBlockStatement(blockStatement As TypeStatementSyntax) As TypeBlockSyntax
Syntax\TypeStatementSyntax.vb (7)
23''' Returns a copy of this <see cref="TypeStatementSyntax"/> with the <see cref="DeclarationKeyword"/> property changed to the 26Public MustOverride Function WithDeclarationKeyword(keyword As SyntaxToken) As TypeStatementSyntax 38Public Function WithKeyword(keyword As SyntaxToken) As TypeStatementSyntax 52Public Overrides Function WithDeclarationKeyword(keyword As SyntaxToken) As TypeStatementSyntax 80Public Overrides Function WithDeclarationKeyword(keyword As SyntaxToken) As TypeStatementSyntax 108Public Overrides Function WithDeclarationKeyword(keyword As SyntaxToken) As TypeStatementSyntax 136Public Overrides Function WithDeclarationKeyword(keyword As SyntaxToken) As TypeStatementSyntax
VisualBasicDeclarationComputer.vb (1)
148Dim typeStatement = TryCast(node, TypeStatementSyntax)
VisualBasicExtensions.vb (1)
967Public Function GetDeclaredSymbol(semanticModel As SemanticModel, declarationSyntax As TypeStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (10)
ElasticTriviaFormattingRule.vb (3)
308IsBeginStatement(Of TypeStatementSyntax, TypeBlockSyntax)(currentStatement) OrElse 323TypeOf previousStatement Is TypeStatementSyntax OrElse 373TypeOf statement Is TypeStatementSyntax OrElse
StatementSyntaxExtensions.vb (5)
28Return DirectCast(member, TypeStatementSyntax).AttributeLists 82Dim newBegin = DirectCast(typeBlock.BlockStatement.WithAttributeLists(attributeLists), TypeStatementSyntax) 173Return DirectCast(member, TypeStatementSyntax).Modifiers 318Return DirectCast(member, TypeStatementSyntax).Identifier 404Return DirectCast(member, TypeStatementSyntax).TypeParameterList
VisualBasicSemanticFacts.vb (1)
219Return DirectCast(n.GetSyntax(cancellationToken), TypeStatementSyntax).Modifiers.Any(SyntaxKind.PartialKeyword)
VisualBasicSyntaxFacts.vb (1)
1400Return DirectCast(node, TypeStatementSyntax).Identifier
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
SyntaxTreeExtensions.vb (2)
82Public Function IsPartialTypeDeclarationNameContext(tree As SyntaxTree, position As Integer, cancellationToken As CancellationToken, ByRef statementSyntax As TypeStatementSyntax) As Boolean 96statementSyntax = token.GetAncestor(Of TypeStatementSyntax)()
TypeBlockSyntaxExtensions.vb (1)
80Private Function EnsureProperBegin(destinationType As TypeBlockSyntax) As TypeStatementSyntax
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (3)
AutomaticEndConstructCorrection\AutomaticEndConstructCorrector.vb (2)
267Function(context As TypeStatementSyntax) Not context.Identifier.IsMissing, 278Function(context As TypeStatementSyntax) context.DeclarationKeyword,
LineCommit\ContainingStatementInfo.vb (1)
114Dim containingTypeStatement = TryCast(containingStatement, TypeStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (2)
Structure\MetadataAsSource\TypeDeclarationStructureTests.vb (1)
12Inherits AbstractVisualBasicSyntaxNodeStructureProviderTests(Of TypeStatementSyntax)
Structure\TypeDeclarationStructureTests.vb (1)
12Inherits AbstractVisualBasicSyntaxNodeStructureProviderTests(Of TypeStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Features (21)
CodeRefactorings\MoveType\VisualBasicMoveTypeService.vb (2)
24Dim typeStatement As TypeStatementSyntax = Await document.TryGetRelevantNodeAsync(Of TypeStatementSyntax)(textSpan, cancellationToken).ConfigureAwait(False)
Completion\CompletionProviders\PartialTypeCompletionProvider.vb (1)
58Dim statement As TypeStatementSyntax = Nothing
Completion\CompletionProviders\VisualBasicSuggestionModeCompletionProvider.vb (1)
122Dim statementSyntax As TypeStatementSyntax = Nothing
Completion\KeywordRecommenders\Declarations\CovarianceModifiersKeywordRecommender.vb (2)
39ElseIf parent.IsChildNode(Of TypeStatementSyntax)(Function(declaration) declaration.TypeParameterList) Then 40If parent.GetAncestor(Of TypeStatementSyntax)().IsKind(SyntaxKind.InterfaceStatement) Then
Completion\KeywordRecommenders\Declarations\ImplementsKeywordRecommender.vb (1)
41Dim typeStatement = TryCast(reference.GetSyntax(cancellationToken), TypeStatementSyntax)
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (1)
70Dim typeDeclaration = targetToken.GetAncestor(Of TypeStatementSyntax)()
ConvertAutoPropertyToFullProperty\VisualBasicConvertAutoPropertyToFullProperty.vb (1)
91Return DirectCast(syntaxNode, TypeStatementSyntax).Parent
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (3)
1257DirectCast(syntaxRefs.Single().GetSyntax(), TypeStatementSyntax).Modifiers.Any(SyntaxKind.PartialKeyword) 1541Return GetDiagnosticSpan(DirectCast(node, TypeStatementSyntax)) 1750Private Overloads Shared Function GetDiagnosticSpan(node As TypeStatementSyntax) As TextSpan
ExtractMethod\VisualBasicMethodExtractor.vb (1)
138If TypeOf currentToken.Parent Is TypeStatementSyntax AndAlso
GenerateType\VisualBasicGenerateTypeService.vb (1)
579node.Parent IsNot Nothing AndAlso TypeOf node.Parent Is TypeStatementSyntax AndAlso
InheritanceMargin\VisualBasicInheritanceMarginService.vb (1)
76Dim typeStatementNode = TryCast(declarationNode, TypeStatementSyntax)
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
227Any(Function(a) TypeOf a.Parent Is TypeStatementSyntax)
MetadataAsSource\VisualBasicMetadataAsSourceService.vb (1)
99Not (member1.Kind = SyntaxKind.ImportsStatement AndAlso TypeOf member2 Is TypeStatementSyntax) Then
Structure\Providers\TypeDeclarationStructureProvider.vb (2)
12Inherits AbstractSyntaxNodeStructureProvider(Of TypeStatementSyntax) 15typeDeclaration As TypeStatementSyntax,
Structure\VisualBasicStructureHelpers.vb (1)
159Dim typeStatement = DirectCast(node, TypeStatementSyntax)
VisualBasicDeclarationComputer.vb (1)
148Dim typeStatement = TryCast(node, TypeStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (4)
1743Dim i1Syntax = DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.InterfaceStatement, 1).AsNode(), TypeStatementSyntax) 1744Dim c1Syntax = DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.ClassStatement, 1).AsNode(), TypeStatementSyntax) 1746Dim c2Syntax = DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.ClassStatement, 2).AsNode(), TypeStatementSyntax) 1747Dim i2Syntax = DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.InterfaceStatement, 2).AsNode(), TypeStatementSyntax)
Extensions.vb (1)
47TypeOf node Is TypeStatementSyntax) _
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\NamespaceGlobalTests.vb (1)
594Dim typeStatementSyntax = CompilationUtils.FindBindingText(Of TypeStatementSyntax)(compilation, "a.vb", 0)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (5)
CompilationTestUtils.vb (5)
1076While Not (TypeOf node Is TypeStatementSyntax) 1081Return DirectCast(semanticModel, VBSemanticModel).GetDeclaredSymbol(DirectCast(node, TypeStatementSyntax)) 1127While Not (TypeOf node Is TypeStatementSyntax OrElse TypeOf node Is EnumStatementSyntax) 1134If TypeOf node Is TypeStatementSyntax Then 1135Dim temp = bindings.GetDeclaredSymbol(DirectCast(node, TypeStatementSyntax))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (20)
Classification\ClassificationHelpers.vb (2)
196ElseIf TypeOf parent Is TypeStatementSyntax AndAlso DirectCast(parent, TypeStatementSyntax).Identifier = identifier Then
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
590Dim typeStatementSyntax = TryCast(declaration, TypeStatementSyntax)
CodeGeneration\VisualBasicDeclarationComparer.vb (4)
120Return Compare(DirectCast(x, TypeStatementSyntax), DirectCast(y, TypeStatementSyntax)) 259Private Function Compare(x As TypeStatementSyntax, y As TypeStatementSyntax) As Integer
Formatting\Rules\ElasticTriviaFormattingRule.vb (3)
308IsBeginStatement(Of TypeStatementSyntax, TypeBlockSyntax)(currentStatement) OrElse 323TypeOf previousStatement Is TypeStatementSyntax OrElse 373TypeOf statement Is TypeStatementSyntax OrElse
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (2)
82Public Function IsPartialTypeDeclarationNameContext(tree As SyntaxTree, position As Integer, cancellationToken As CancellationToken, ByRef statementSyntax As TypeStatementSyntax) As Boolean 96statementSyntax = token.GetAncestor(Of TypeStatementSyntax)()
StatementSyntaxExtensions.vb (5)
28Return DirectCast(member, TypeStatementSyntax).AttributeLists 82Dim newBegin = DirectCast(typeBlock.BlockStatement.WithAttributeLists(attributeLists), TypeStatementSyntax) 173Return DirectCast(member, TypeStatementSyntax).Modifiers 318Return DirectCast(member, TypeStatementSyntax).Identifier 404Return DirectCast(member, TypeStatementSyntax).TypeParameterList
TypeBlockSyntaxExtensions.vb (1)
80Private Function EnsureProperBegin(destinationType As TypeBlockSyntax) As TypeStatementSyntax
VisualBasicSemanticFacts.vb (1)
219Return DirectCast(n.GetSyntax(cancellationToken), TypeStatementSyntax).Modifiers.Any(SyntaxKind.PartialKeyword)
VisualBasicSyntaxFacts.vb (1)
1400Return DirectCast(node, TypeStatementSyntax).Identifier
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (1)
1108If TypeOf node Is TypeStatementSyntax AndAlso