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