1 type derived from SingleNamespaceDeclaration
Microsoft.CodeAnalysis.VisualBasic (1)
Declarations\GlobalNamespaceDeclaration.vb (1)
24
Inherits
SingleNamespaceDeclaration
3 instantiations of SingleNamespaceDeclaration
Microsoft.CodeAnalysis.VisualBasic (3)
Declarations\DeclarationTreeBuilder.vb (2)
152
decl = New
SingleNamespaceDeclaration
(
314
ns = New
SingleNamespaceDeclaration
(
Declarations\GlobalNamespaceDeclaration.vb (1)
30
MyBase.
New
(String.Empty, hasImports, syntaxReference, nameLocation, children)
32 references to SingleNamespaceDeclaration
Microsoft.CodeAnalysis.VisualBasic (32)
Declarations\DeclarationTable.vb (5)
168
Dim builder = ArrayBuilder(Of
SingleNamespaceDeclaration
).GetInstance(oldRootDeclarations.Length + 1)
180
Implements IComparer(Of
SingleNamespaceDeclaration
)
191
Public Function Compare(x As
SingleNamespaceDeclaration
, y As
SingleNamespaceDeclaration
) As Integer Implements IComparer(Of
SingleNamespaceDeclaration
).Compare
Declarations\DeclarationTreeBuilder.vb (4)
269
Dim nsDecl As
SingleNamespaceDeclaration
= TryCast(decl,
SingleNamespaceDeclaration
)
294
children As ImmutableArray(Of SingleNamespaceOrTypeDeclaration)) As
SingleNamespaceDeclaration
297
Dim ns As
SingleNamespaceDeclaration
= Nothing
Declarations\MergedNamespaceDeclaration.vb (14)
14
Private ReadOnly _declarations As ImmutableArray(Of
SingleNamespaceDeclaration
)
18
Private Sub New(declarations As ImmutableArray(Of
SingleNamespaceDeclaration
))
21
Me.Name =
SingleNamespaceDeclaration
.BestName(Of
SingleNamespaceDeclaration
)(declarations, _multipleSpellings)
27
Public Shared Function Create(declarations As IEnumerable(Of
SingleNamespaceDeclaration
)) As MergedNamespaceDeclaration
28
Return New MergedNamespaceDeclaration(ImmutableArray.CreateRange(Of
SingleNamespaceDeclaration
)(declarations))
31
Public Shared Function Create(ParamArray declarations As
SingleNamespaceDeclaration
()) As MergedNamespaceDeclaration
41
Public ReadOnly Property Declarations As ImmutableArray(Of
SingleNamespaceDeclaration
)
99
Dim childNamespaces = ArrayBuilder(Of
SingleNamespaceDeclaration
).GetInstance()
103
For Each d As
SingleNamespaceDeclaration
In _declarations
105
Dim singleNamespaceDeclaration As
SingleNamespaceDeclaration
= TryCast(child,
SingleNamespaceDeclaration
)
125
If
SingleNamespaceDeclaration
.EqualityComparer.Equals(childNamespaces(0), childNamespaces(1)) Then
133
For Each group In childNamespaces.GroupBy(Function(n) n,
SingleNamespaceDeclaration
.EqualityComparer)
Declarations\SingleNamespaceDeclaration.vb (8)
60
Implements IEqualityComparer(Of
SingleNamespaceDeclaration
)
62
Private Shadows Function Equals(decl1 As
SingleNamespaceDeclaration
, decl2 As
SingleNamespaceDeclaration
) As Boolean Implements IEqualityComparer(Of
SingleNamespaceDeclaration
).Equals
66
Private Shadows Function GetHashCode(decl1 As
SingleNamespaceDeclaration
) As Integer Implements IEqualityComparer(Of
SingleNamespaceDeclaration
).GetHashCode
71
Public Shared ReadOnly EqualityComparer As IEqualityComparer(Of
SingleNamespaceDeclaration
) = New Comparer()
83
Public Overloads Shared Function BestName(Of T As
SingleNamespaceDeclaration
)(singleDeclarations As ImmutableArray(Of T), ByRef multipleSpellings As Boolean) As String
Symbols\Source\SourceNamespaceSymbol.vb (1)
293
Dim declarations As ImmutableArray(Of
SingleNamespaceDeclaration
) = _declaration.Declarations