2 types derived from SingleNamespaceOrTypeDeclaration
Microsoft.CodeAnalysis.VisualBasic (2)
Declarations\SingleNamespaceDeclaration.vb (1)
15Inherits SingleNamespaceOrTypeDeclaration
Declarations\SingleTypeDeclaration.vb (1)
10Inherits SingleNamespaceOrTypeDeclaration
2 instantiations of SingleNamespaceOrTypeDeclaration
Microsoft.CodeAnalysis.VisualBasic (2)
Declarations\SingleNamespaceDeclaration.vb (1)
27MyBase.New(name, syntaxReference, nameLocation)
Declarations\SingleTypeDeclaration.vb (1)
42MyBase.New(name, syntaxReference, nameLocation)
52 references to SingleNamespaceOrTypeDeclaration
Microsoft.CodeAnalysis.VisualBasic (52)
Declarations\DeclarationTable.vb (1)
190Constraint:="Avoid " + NameOf(SingleNamespaceOrTypeDeclaration.Location) + " since it probably also has a costly allocation on this fast path (VB equivalent of issue found in C# code).")>
Declarations\DeclarationTreeBuilder.vb (38)
13Inherits VisualBasicSyntaxVisitor(Of SingleNamespaceOrTypeDeclaration) 40Private Function ForDeclaration(node As SyntaxNode) As SingleNamespaceOrTypeDeclaration 44Private Function VisitNamespaceChildren(node As VisualBasicSyntaxNode, members As SyntaxList(Of StatementSyntax)) As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 45Dim implicitClass As SingleNamespaceOrTypeDeclaration = Nothing 57<Out()> ByRef implicitClass As SingleNamespaceOrTypeDeclaration) As ArrayBuilder(Of SingleNamespaceOrTypeDeclaration) 59Dim children = ArrayBuilder(Of SingleNamespaceOrTypeDeclaration).GetInstance() 67Dim namespaceOrType As SingleNamespaceOrTypeDeclaration = Visit(member) 115Private Function CreateImplicitClass(parent As VisualBasicSyntaxNode, memberNames As ImmutableHashSet(Of String), children As ImmutableArray(Of SingleTypeDeclaration), declFlags As SingleTypeDeclaration.TypeDeclarationFlags) As SingleNamespaceOrTypeDeclaration 131Private Function CreateScriptClass(parent As VisualBasicSyntaxNode, children As ImmutableArray(Of SingleTypeDeclaration), memberNames As ImmutableHashSet(Of String), declFlags As SingleTypeDeclaration.TypeDeclarationFlags) As SingleNamespaceOrTypeDeclaration 139Dim decl As SingleNamespaceOrTypeDeclaration = New SingleTypeDeclaration( 157children:=ImmutableArray.Create(Of SingleNamespaceOrTypeDeclaration)(decl)) 164Public Overrides Function VisitCompilationUnit(node As CompilationUnitSyntax) As SingleNamespaceOrTypeDeclaration 165Dim children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 166Dim globalChildren As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) = Nothing 167Dim nonGlobal As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) = Nothing 170Dim implicitClass As SingleNamespaceOrTypeDeclaration = Nothing 176Dim childrenBuilder = ArrayBuilder(Of SingleNamespaceOrTypeDeclaration).GetInstance() 223Dim newChildren = globalChildren.OfType(Of SingleNamespaceOrTypeDeclaration).AsImmutable() 257Private Sub FindGlobalDeclarations(declarations As ImmutableArray(Of SingleNamespaceOrTypeDeclaration), 258implicitClass As SingleNamespaceOrTypeDeclaration, 259ByRef globalDeclarations As ImmutableArray(Of SingleNamespaceOrTypeDeclaration), 260ByRef nonGlobal As ImmutableArray(Of SingleNamespaceOrTypeDeclaration)) 261Dim globalBuilder = ArrayBuilder(Of SingleNamespaceOrTypeDeclaration).GetInstance() 262Dim nonGlobalBuilder = ArrayBuilder(Of SingleNamespaceOrTypeDeclaration).GetInstance() 294children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration)) As SingleNamespaceDeclaration 328children = ImmutableArray.Create(Of SingleNamespaceOrTypeDeclaration)(ns) 334Public Overrides Function VisitNamespaceBlock(nsBlockSyntax As NamespaceBlockSyntax) As SingleNamespaceOrTypeDeclaration 348children = {ns}.OfType(Of SingleNamespaceOrTypeDeclaration).AsImmutable() 410Private Function VisitTypeBlockNew(topTypeBlockSyntax As TypeBlockSyntax) As SingleNamespaceOrTypeDeclaration 522Dim result As SingleNamespaceOrTypeDeclaration = typeStack(0).TypeDeclaration 528Public Overrides Function VisitModuleBlock(ByVal moduleBlockSyntax As ModuleBlockSyntax) As SingleNamespaceOrTypeDeclaration 532Public Overrides Function VisitClassBlock(ByVal classBlockSyntax As ClassBlockSyntax) As SingleNamespaceOrTypeDeclaration 536Public Overrides Function VisitStructureBlock(ByVal structureBlockSyntax As StructureBlockSyntax) As SingleNamespaceOrTypeDeclaration 540Public Overrides Function VisitInterfaceBlock(ByVal interfaceBlockSyntax As InterfaceBlockSyntax) As SingleNamespaceOrTypeDeclaration 544Public Overrides Function VisitEnumBlock(enumBlockSyntax As EnumBlockSyntax) As SingleNamespaceOrTypeDeclaration 741Public Overrides Function VisitDelegateStatement(node As DelegateStatementSyntax) As SingleNamespaceOrTypeDeclaration 762Public Overrides Function VisitEventStatement(node As EventStatementSyntax) As SingleNamespaceOrTypeDeclaration
Declarations\GlobalNamespaceDeclaration.vb (1)
29children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration))
Declarations\MergedNamespaceDeclaration.vb (1)
104For Each child As SingleNamespaceOrTypeDeclaration In d.Children
Declarations\MergedTypeDeclaration.vb (1)
37MyBase.New(SingleNamespaceOrTypeDeclaration.BestName(Of SingleTypeDeclaration)(declarations))
Declarations\RootSingleNamespaceDeclaration.vb (1)
28children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration),
Declarations\SingleNamespaceDeclaration.vb (3)
17Private ReadOnly _children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 25children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration), 46Protected Overrides Function GetNamespaceOrTypeDeclarationChildren() As ImmutableArray(Of SingleNamespaceOrTypeDeclaration)
Declarations\SingleNamespaceOrTypeDeclaration.vb (4)
26Protected MustOverride Function GetNamespaceOrTypeDeclarationChildren() As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 32Public Overloads ReadOnly Property Children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 48Public Shared Function BestName(Of T As SingleNamespaceOrTypeDeclaration)(singleDeclarations As ImmutableArray(Of T), ByRef multipleSpellings As Boolean) As String 71Public Shared Function BestName(Of T As SingleNamespaceOrTypeDeclaration)(singleDeclarations As ImmutableArray(Of T)) As String
Declarations\SingleTypeDeclaration.vb (2)
105Protected Overrides Function GetNamespaceOrTypeDeclarationChildren() As ImmutableArray(Of SingleNamespaceOrTypeDeclaration) 106Return StaticCast(Of SingleNamespaceOrTypeDeclaration).From(_children)