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