4 types derived from NamespaceSymbol
Microsoft.CodeAnalysis.VisualBasic (4)
Emit\SynthesizedNamespaceSymbol.vb (1)
15
Inherits
NamespaceSymbol
Symbols\MissingNamespaceSymbol.vb (1)
23
Inherits
NamespaceSymbol
Symbols\PEOrSourceOrMergedNamespaceSymbol.vb (1)
17
Inherits
NamespaceSymbol
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
25
Inherits
NamespaceSymbol
136 references to NamespaceSymbol
Microsoft.CodeAnalysis.VisualBasic (136)
Compilation\DocumentationComments\DocumentationCommentCompiler.Namespace.vb (1)
24
Public Overrides Sub VisitNamespace(symbol As Symbols.
NamespaceSymbol
)
Emit\NamespaceSymbolAdapter.vb (2)
63
Friend ReadOnly Property AdaptedNamespaceSymbol As
NamespaceSymbol
65
Friend Sub New(underlyingNamespaceSymbol As
NamespaceSymbol
)
Emit\SynthesizedNamespaceSymbol.vb (3)
17
Private ReadOnly _containingNamespace As
NamespaceSymbol
21
Sub New(containingNamespace As
NamespaceSymbol
, name As String)
71
Friend Overrides Sub AddExtensionMethodLookupSymbolsInfo(nameSet As LookupSymbolsInfo, options As LookupOptions, originalBinder As Binder, appendThrough As
NamespaceSymbol
)
Symbols\AliasSymbol.vb (1)
68
Dim sourceNs As
NamespaceSymbol
= Nothing
Symbols\AssemblySymbol.vb (5)
134
Public MustOverride ReadOnly Property GlobalNamespace As
NamespaceSymbol
139
Friend Function GetAssemblyNamespace(namespaceSymbol As
NamespaceSymbol
) As
NamespaceSymbol
144
Dim container As
NamespaceSymbol
= namespaceSymbol.ContainingNamespace
154
Dim assemblyContainer As
NamespaceSymbol
= GetAssemblyNamespace(container)
Symbols\ExtendedErrorTypeSymbol.vb (3)
58
DirectCast(candidateSymbols(0),
NamespaceSymbol
).NamespaceKind = NamespaceKindNamespaceGroup Then
59
_candidateSymbols = StaticCast(Of Symbol).From(DirectCast(candidateSymbols(0),
NamespaceSymbol
).ConstituentNamespaces)
66
Debug.Assert(item.Kind <> SymbolKind.Namespace OrElse DirectCast(item,
NamespaceSymbol
).NamespaceKind <> NamespaceKindNamespaceGroup)
Symbols\MergedNamespaceSymbol.vb (52)
32
Protected ReadOnly _namespacesToMerge As ImmutableArray(Of
NamespaceSymbol
)
51
Public Shared Function CreateGlobalNamespace(extent As AssemblySymbol) As
NamespaceSymbol
57
Private Shared Iterator Function ConstituentGlobalNamespaces(extent As AssemblySymbol) As IEnumerable(Of
NamespaceSymbol
)
72
Private Shared Function Create(extent As AssemblySymbol, containingNamespace As AssemblyMergedNamespaceSymbol, namespacesToMerge As ImmutableArray(Of
NamespaceSymbol
)) As
NamespaceSymbol
90
Friend Shared Function CreateForTestPurposes(extent As AssemblySymbol, namespacesToMerge As IEnumerable(Of
NamespaceSymbol
)) As
NamespaceSymbol
97
Public Shared Function CreateGlobalNamespace(extent As VisualBasicCompilation) As
NamespaceSymbol
102
Private Shared Iterator Function ConstituentGlobalNamespaces(extent As VisualBasicCompilation) As IEnumerable(Of
NamespaceSymbol
)
114
Private Shared Function Create(extent As VisualBasicCompilation, containingNamespace As CompilationMergedNamespaceSymbol, namespacesToMerge As IEnumerable(Of
NamespaceSymbol
)) As
NamespaceSymbol
115
Dim namespaceArray = ArrayBuilder(Of
NamespaceSymbol
).GetInstance()
143
Public Shared Function CreateNamespaceGroup(namespacesToMerge As IEnumerable(Of
NamespaceSymbol
)) As
NamespaceSymbol
147
Public Overridable Function Shrink(namespacesToMerge As IEnumerable(Of
NamespaceSymbol
)) As
NamespaceSymbol
159
Private Shared Function Create(containingNamespace As NamespaceGroupSymbol, namespacesToMerge As IEnumerable(Of
NamespaceSymbol
)) As
NamespaceSymbol
160
Dim namespaceArray = ArrayBuilder(Of
NamespaceSymbol
).GetInstance()
182
Private Sub New(containingNamespace As MergedNamespaceSymbol, namespacesToMerge As ImmutableArray(Of
NamespaceSymbol
))
190
Friend Function GetConstituentForCompilation(compilation As VisualBasicCompilation) As
NamespaceSymbol
199
Public Overrides ReadOnly Property ConstituentNamespaces As ImmutableArray(Of
NamespaceSymbol
)
210
Dim nsSymbols As ArrayBuilder(Of
NamespaceSymbol
) = Nothing
214
For Each nsSym As
NamespaceSymbol
In _namespacesToMerge
217
nsSymbols = If(nsSymbols, ArrayBuilder(Of
NamespaceSymbol
).GetInstance())
218
nsSymbols.Add(DirectCast(childSym,
NamespaceSymbol
))
232
Protected MustOverride Function CreateChildMergedNamespaceSymbol(nsSymbols As ImmutableArray(Of
NamespaceSymbol
)) As
NamespaceSymbol
242
For Each nsSym As
NamespaceSymbol
In _namespacesToMerge
248
For Each nsSym As
NamespaceSymbol
In _namespacesToMerge
285
For Each nsSym As
NamespaceSymbol
In _namespacesToMerge
370
For Each nsSym As
NamespaceSymbol
In _namespacesToMerge
386
For Each nsSym As
NamespaceSymbol
In _namespacesToMerge
405
Public Sub New(assembly As AssemblySymbol, containingNamespace As AssemblyMergedNamespaceSymbol, namespacesToMerge As ImmutableArray(Of
NamespaceSymbol
))
425
Protected Overrides Function CreateChildMergedNamespaceSymbol(nsSymbols As ImmutableArray(Of
NamespaceSymbol
)) As
NamespaceSymbol
461
Public Sub New(compilation As VisualBasicCompilation, containingNamespace As CompilationMergedNamespaceSymbol, namespacesToMerge As ImmutableArray(Of
NamespaceSymbol
))
481
Protected Overrides Function CreateChildMergedNamespaceSymbol(nsSymbols As ImmutableArray(Of
NamespaceSymbol
)) As
NamespaceSymbol
505
For Each nsSym As
NamespaceSymbol
In _namespacesToMerge
568
For Each nsSym As
NamespaceSymbol
In _namespacesToMerge
576
For Each nsSym As
NamespaceSymbol
In _namespacesToMerge
593
Public Shared ReadOnly GlobalNamespace As New NamespaceGroupSymbol(Nothing, ImmutableArray(Of
NamespaceSymbol
).Empty)
595
Public Sub New(containingNamespace As NamespaceGroupSymbol, namespacesToMerge As ImmutableArray(Of
NamespaceSymbol
))
650
Protected Overrides Function CreateChildMergedNamespaceSymbol(nsSymbols As ImmutableArray(Of
NamespaceSymbol
)) As
NamespaceSymbol
654
Public Overrides Function Shrink(namespacesToMerge As IEnumerable(Of
NamespaceSymbol
)) As
NamespaceSymbol
655
Dim namespaceArray = ArrayBuilder(Of
NamespaceSymbol
).GetInstance()
680
Dim lookup = New SmallDictionary(Of
NamespaceSymbol
, Boolean)()
697
Private Overloads Function Shrink(namespaceArray As ImmutableArray(Of
NamespaceSymbol
)) As NamespaceGroupSymbol
708
Dim parentsArray = ArrayBuilder(Of
NamespaceSymbol
).GetInstance(namespaceArray.Length)
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
254
Public Overrides ReadOnly Property GlobalNamespace As
NamespaceSymbol
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
968
appendThrough As
NamespaceSymbol
Symbols\MissingAssemblySymbol.vb (1)
79
Public NotOverridable Overrides ReadOnly Property GlobalNamespace As
NamespaceSymbol
Symbols\MissingMetadataTypeSymbol.vb (4)
83
Private _lazyContainingNamespace As
NamespaceSymbol
141
Dim container As
NamespaceSymbol
= _containingModule.GlobalNamespace
148
Dim newContainer As
NamespaceSymbol
= Nothing
155
newContainer = DirectCast(symbol,
NamespaceSymbol
)
Symbols\MissingModuleSymbol.vb (1)
74
Public Overrides ReadOnly Property GlobalNamespace As
NamespaceSymbol
Symbols\MissingNamespaceSymbol.vb (4)
19
''' A <see cref="MissingNamespaceSymbol"/> is a special kind of <see cref="
NamespaceSymbol
"/> that represents
35
Public Sub New(containingNamespace As
NamespaceSymbol
, name As String)
67
Return DirectCast(_containingSymbol,
NamespaceSymbol
).Extent
138
appendThrough As
NamespaceSymbol
)
Symbols\ModuleSymbol.vb (3)
90
Public MustOverride ReadOnly Property GlobalNamespace As
NamespaceSymbol
259
Public Function GetModuleNamespace(namespaceSymbol As INamespaceSymbol) As
NamespaceSymbol
264
Dim moduleNs = TryCast(namespaceSymbol,
NamespaceSymbol
)
Symbols\NamedTypeSymbol.vb (2)
326
appendThrough As
NamespaceSymbol
338
appendThrough As
NamespaceSymbol
,
Symbols\NamespaceSymbol.vb (14)
33
Public Overridable Function GetNamespaceMembers() As IEnumerable(Of
NamespaceSymbol
)
34
Return Me.GetMembers().OfType(Of
NamespaceSymbol
)()
95
Public Overridable ReadOnly Property ConstituentNamespaces As ImmutableArray(Of
NamespaceSymbol
)
97
Return ImmutableArray.Create(Of
NamespaceSymbol
)(Me)
210
Dim [namespace] = DirectCast(member,
NamespaceSymbol
)
266
Friend Function LookupNestedNamespace(names As ImmutableArray(Of String)) As
NamespaceSymbol
267
Dim scope As
NamespaceSymbol
= Me
271
Dim nextScope As
NamespaceSymbol
= Nothing
275
Dim ns = TryCast(symbol,
NamespaceSymbol
)
299
Friend Function LookupNestedNamespace(names As String()) As
NamespaceSymbol
400
Friend Function GetNestedNamespace(name As String) As
NamespaceSymbol
403
Return DirectCast(sym,
NamespaceSymbol
)
409
Friend Function GetNestedNamespace(name As NameSyntax) As
NamespaceSymbol
456
appendThrough As
NamespaceSymbol
)
Symbols\NonMissingAssemblySymbol.vb (2)
38
Private _lazyGlobalNamespace As
NamespaceSymbol
54
Public NotOverridable Overrides ReadOnly Property GlobalNamespace As
NamespaceSymbol
Symbols\NonMissingModuleSymbol.vb (1)
155
Dim scope As
NamespaceSymbol
Symbols\PEOrSourceOrMergedNamespaceSymbol.vb (1)
131
appendThrough As
NamespaceSymbol
)
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
148
Public Overrides ReadOnly Property GlobalNamespace As
NamespaceSymbol
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (2)
205
appendThrough As
NamespaceSymbol
210
Friend Overrides Sub GetExtensionMethods(methods As ArrayBuilder(Of MethodSymbol), appendThrough As
NamespaceSymbol
, Name As String)
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (4)
35
Private ReadOnly _underlyingNamespace As
NamespaceSymbol
37
Public Sub New(retargetingModule As RetargetingModuleSymbol, underlyingNamespace As
NamespaceSymbol
)
55
Public ReadOnly Property UnderlyingNamespace As
NamespaceSymbol
287
appendThrough As
NamespaceSymbol
)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (5)
44
Return New RetargetingNamespaceSymbol(Me, DirectCast(symbol,
NamespaceSymbol
))
147
Public Function Retarget(ns As
NamespaceSymbol
) As
NamespaceSymbol
148
Return DirectCast(SymbolMap.GetOrAdd(ns, _retargetingModule._createRetargetingNamespace),
NamespaceSymbol
)
1122
Public Overrides Function VisitNamespace(symbol As
NamespaceSymbol
, options As RetargetOptions) As Symbol
Symbols\Source\SourceFile.vb (1)
385
diagnostics.AddAssembliesUsedByNamespaceReference(DirectCast(namespaceOrType,
NamespaceSymbol
))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
3349
appendThrough As
NamespaceSymbol
)
Symbols\Source\SourceModuleSymbol.vb (7)
183
Public Overrides ReadOnly Property GlobalNamespace As
NamespaceSymbol
196
Friend ReadOnly Property RootNamespace As
NamespaceSymbol
309
Private Shared Function NamespaceContainsExplicitDefinitionOfNoPiaLocalTypes(ns As
NamespaceSymbol
) As Boolean
313
If NamespaceContainsExplicitDefinitionOfNoPiaLocalTypes(DirectCast(s,
NamespaceSymbol
)) Then
506
diagnostics.AddAssembliesUsedByNamespaceReference(DirectCast(namespaceOrType,
NamespaceSymbol
))
518
diagnostics.AddAssembliesUsedByNamespaceReference(DirectCast(target,
NamespaceSymbol
))
1190
GetTypesWithDefaultInstanceAlias(DirectCast(member,
NamespaceSymbol
), result)
Symbols\Source\SourceNamedTypeSymbol.vb (3)
505
_3rdArg = DirectCast(s,
NamespaceSymbol
).GetKindText()
574
Dim containingNamespace = DirectCast(container,
NamespaceSymbol
)
583
For Each constituent As
NamespaceSymbol
In mergedAssemblyNamespace.ConstituentNamespaces
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (2)
235
ns As
NamespaceSymbol
,
263
GetMyGroupCollectionTypes(DirectCast(member,
NamespaceSymbol
), baseTypes, binder, collectionTypes)
Symbols\Source\SourceNamespaceSymbol.vb (1)
156
ImmutableArrayExtensions.CreateNameToMembersMap(Of String, NamespaceOrTypeSymbol, NamedTypeSymbol,
NamespaceSymbol
)(builder, result)
Symbols\SymbolExtensions.vb (2)
101
Dim ns As
NamespaceSymbol
= DirectCast(target,
NamespaceSymbol
)
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (2)
18
Private ReadOnly _namespace As
NamespaceSymbol
22
containingNamespace As
NamespaceSymbol
,
Symbols\TypeSymbolExtensions.vb (3)
1244
Dim [namespace] = DirectCast(container,
NamespaceSymbol
)
1252
Private Function HasNamespaceName([namespace] As
NamespaceSymbol
, namespaceName As String, comparison As StringComparison, length As Integer) As Boolean
1338
Dim midNamespace As
NamespaceSymbol