2 types derived from NamespaceOrTypeSymbol
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\NamespaceSymbol.vb (1)
19Inherits NamespaceOrTypeSymbol
Symbols\TypeSymbol.vb (1)
22Inherits NamespaceOrTypeSymbol
129 references to NamespaceOrTypeSymbol
Microsoft.CodeAnalysis.VisualBasic (129)
Binding\BackstopBinder.vb (1)
80Public Overrides ReadOnly Property ContainingNamespaceOrType As NamespaceOrTypeSymbol
Binding\Binder_Attributes.vb (2)
121container As NamespaceOrTypeSymbol, 156container As NamespaceOrTypeSymbol,
Binding\Binder_Imports.vb (5)
21Protected Sub New(members As HashSet(Of NamespaceOrTypeSymbol), 29Public ReadOnly Members As HashSet(Of NamespaceOrTypeSymbol) 33Public MustOverride Sub AddMember(syntaxRef As SyntaxReference, member As NamespaceOrTypeSymbol, importsClausePosition As Integer, dependencies As IReadOnlyCollection(Of AssemblySymbol), isProjectImportsDeclaration As Boolean) 84Dim aliasTarget As NamespaceOrTypeSymbol = binder.BindNamespaceOrTypeSyntax(aliasesName, diagBag) 166Dim importedSymbol As NamespaceOrTypeSymbol = binder.BindNamespaceOrTypeSyntax(importsName, diagBag)
Binding\Binder_Lookup.vb (4)
23container As NamespaceOrTypeSymbol, 99container As NamespaceOrTypeSymbol, 334container As NamespaceOrTypeSymbol, 352container As NamespaceOrTypeSymbol,
Binding\Binder_Symbols.vb (7)
80Optional suppressUseSiteError As Boolean = False) As NamespaceOrTypeSymbol 471suppressUseSiteError As Boolean) As NamespaceOrTypeSymbol 474suppressUseSiteError:=suppressUseSiteError), NamespaceOrTypeSymbol) 961Dim leftSymbol As NamespaceOrTypeSymbol = DirectCast(lookupResult.SingleSymbol, NamespaceOrTypeSymbol) 1052Dim leftSymbol As NamespaceOrTypeSymbol = DirectCast(lookupResult.SingleSymbol, NamespaceOrTypeSymbol)
Binding\Binder.vb (2)
415Public Overridable ReadOnly Property ContainingNamespaceOrType As NamespaceOrTypeSymbol 936Public Sub AddTypesAssemblyAsDependency(namespaceOrType As NamespaceOrTypeSymbol, diagBag As BindingDiagnosticBag)
Binding\BinderFactory.vb (1)
625For Each symbol As NamespaceOrTypeSymbol In containingBinder.NamespaceSymbol.GetMembers(name)
Binding\Binders\NamespaceOrTypeAndImportsClause.vb (2)
10Public ReadOnly NamespaceOrType As NamespaceOrTypeSymbol 15Public Sub New(namespaceOrType As NamespaceOrTypeSymbol, importsClausePosition As Integer, syntaxReference As SyntaxReference, dependencies As ImmutableArray(Of AssemblySymbol))
Binding\NamedTypeBinder.vb (1)
53Public Overrides ReadOnly Property ContainingNamespaceOrType As NamespaceOrTypeSymbol
Binding\NamespaceBinder.vb (1)
34Public Overrides ReadOnly Property ContainingNamespaceOrType As NamespaceOrTypeSymbol
Compilation\ClsComplianceChecker.vb (1)
447Private Sub CheckMemberDistinctness(symbol As NamespaceOrTypeSymbol)
Compilation\SemanticModel.vb (8)
1812container As NamespaceOrTypeSymbol, 1893Private Sub AppendSymbolsWithName(results As ArrayBuilder(Of Symbol), name As String, binder As Binder, container As NamespaceOrTypeSymbol, options As LookupOptions, info As LookupSymbolsInfo) 1918container As NamespaceOrTypeSymbol, 1944container As NamespaceOrTypeSymbol, 1995container As NamespaceOrTypeSymbol, 2035Optional container As NamespaceOrTypeSymbol = Nothing, 3231Private Shared Function ToLanguageSpecific(container As INamespaceOrTypeSymbol) As NamespaceOrTypeSymbol 3236Dim result = TryCast(container, NamespaceOrTypeSymbol)
Compilation\SyntaxTreeSemanticModel.vb (1)
1338Dim targetSymbol As NamespaceOrTypeSymbol = binder.BindNamespaceOrTypeSyntax(declarationSyntax.Name, BindingDiagnosticBag.Discarded)
Compilation\VisualBasicCompilation.vb (13)
1684Friend ReadOnly Property MemberImports As ImmutableArray(Of NamespaceOrTypeSymbol) 2861container.EnsureVbSymbolOrNothing(Of NamespaceOrTypeSymbol)(NameOf(container)), 3199Private ReadOnly _cache As PooledDictionary(Of Declaration, NamespaceOrTypeSymbol) 3207_cache = PooledDictionary(Of Declaration, NamespaceOrTypeSymbol).GetInstance() 3279Dim container As NamespaceOrTypeSymbol = Nothing 3292Private Function GetSpineSymbol(spine As ArrayBuilder(Of MergedNamespaceOrTypeDeclaration)) As NamespaceOrTypeSymbol 3302Dim current = TryCast(Me._compilation.GlobalNamespace, NamespaceOrTypeSymbol) 3310Private Function GetCachedSymbol(declaration As MergedNamespaceOrTypeDeclaration) As NamespaceOrTypeSymbol 3311Dim symbol As NamespaceOrTypeSymbol = Nothing 3319Private Function GetSymbol(container As NamespaceOrTypeSymbol, declaration As MergedNamespaceOrTypeDeclaration) As NamespaceOrTypeSymbol 3330AddCache(container.GetMembers(declaration.Name).OfType(Of NamespaceOrTypeSymbol)()) 3338Private Sub AddCache(symbols As IEnumerable(Of NamespaceOrTypeSymbol))
Emit\PEModuleBuilder.vb (12)
200Dim namespacesAndTypesToProcess As New Stack(Of NamespaceOrTypeSymbol)() 206Dim symbol As NamespaceOrTypeSymbol = namespacesAndTypesToProcess.Pop() 218namespacesAndTypesToProcess.Push(DirectCast(member, NamespaceOrTypeSymbol)) 234namespacesAndTypesToProcess.Push(DirectCast(member, NamespaceOrTypeSymbol)) 353Dim stack As New Stack(Of NamespaceOrTypeSymbol)() 358Dim sym As NamespaceOrTypeSymbol = stack.Pop() 372Dim namespaceOrType As NamespaceOrTypeSymbol = TryCast(members(i), NamespaceOrTypeSymbol) 497Private Overloads Sub GetExportedTypes(symbol As NamespaceOrTypeSymbol, parentIndex As Integer, builder As ArrayBuilder(Of Cci.ExportedType)) 513Dim namespaceOrType = TryCast(member, NamespaceOrTypeSymbol) 645Dim namespacesAndTopLevelTypesToProcess = ArrayBuilder(Of NamespaceOrTypeSymbol).GetInstance() 665namespacesAndTopLevelTypesToProcess.Push(DirectCast(member, NamespaceOrTypeSymbol))
Semantics\AccessCheck.vb (9)
567Public ExposedTo As NamespaceOrTypeSymbol 630Dim containerWithAccessError As NamespaceOrTypeSymbol = Nothing 651ByRef containerWithAccessError As NamespaceOrTypeSymbol, 708ByRef containerWithAccessError As NamespaceOrTypeSymbol, 854ByRef containerWithAccessError As NamespaceOrTypeSymbol, 880Dim parentOfExposingType As NamespaceOrTypeSymbol 1050Dim containerAtWhichAccessErrorOccurs As NamespaceOrTypeSymbol = accessExposure.ExposedTo 1123Dim containerAtWhichAccessErrorOccurs As NamespaceOrTypeSymbol = accessExposure.ExposedTo 1183Dim containerAtWhichAccessErrorOccurs As NamespaceOrTypeSymbol = accessExposure.ExposedTo
SymbolDisplay\SymbolDisplayVisitor_Minimal.vb (1)
170If [alias].Alias.Target = DirectCast(symbol, NamespaceOrTypeSymbol) Then
Symbols\AliasSymbol.vb (4)
56Private ReadOnly _aliasTarget As NamespaceOrTypeSymbol 64aliasTarget As NamespaceOrTypeSymbol, 100''' Gets the <see cref="NamespaceOrTypeSymbol"/> for the 103Public ReadOnly Property Target As NamespaceOrTypeSymbol
Symbols\EmbeddedSymbols\Symbols\EmbeddedNamedTypeSymbol.vb (1)
22Public Sub New(decl As MergedTypeDeclaration, containingSymbol As NamespaceOrTypeSymbol, containingModule As SourceModuleSymbol, kind As EmbeddedSymbolKind)
Symbols\ExtendedErrorTypeSymbol.vb (2)
27Private ReadOnly _containingSymbol As NamespaceOrTypeSymbol 92Friend Sub New(containingSymbol As NamespaceOrTypeSymbol,
Symbols\MergedNamespaceSymbol.vb (1)
249For Each childSym As NamespaceOrTypeSymbol In nsSym.GetMembersUnordered()
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
30Private ReadOnly _container As NamespaceOrTypeSymbol 112container As NamespaceOrTypeSymbol,
Symbols\MissingMetadataTypeSymbol.vb (1)
151For Each symbol As NamespaceOrTypeSymbol In container.GetMembers(nsName)
Symbols\NamespaceOrTypeSymbol.vb (5)
249Friend Function GetNamespaceOrTypeByQualifiedName(qualifiedName As IEnumerable(Of String)) As IEnumerable(Of NamespaceOrTypeSymbol) 250Dim namespaceOrType As NamespaceOrTypeSymbol = Me 251Dim symbols As IEnumerable(Of NamespaceOrTypeSymbol) = Nothing 256Return SpecializedCollections.EmptyEnumerable(Of NamespaceOrTypeSymbol)() 260symbols = namespaceOrType.GetMembers(namePart).OfType(Of NamespaceOrTypeSymbol)()
Symbols\NamespaceSymbol.vb (1)
273For Each symbol As NamespaceOrTypeSymbol In scope.GetMembers(name)
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
28Friend Sub New(declaration As MergedTypeDeclaration, containingSymbol As NamespaceOrTypeSymbol, containingModule As SourceModuleSymbol)
Symbols\Source\SourceFile.vb (3)
293MyBase.New(New HashSet(Of NamespaceOrTypeSymbol), New Dictionary(Of String, AliasAndImportsClausePosition)(IdentifierComparison.Comparer), New Dictionary(Of String, XmlNamespaceAndImportsClausePosition)) 300member As NamespaceOrTypeSymbol, 354namespaceOrType As NamespaceOrTypeSymbol,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (7)
68Private ReadOnly _containingSymbol As NamespaceOrTypeSymbol 106containingSymbol As NamespaceOrTypeSymbol, 224containingSymbol As NamespaceOrTypeSymbol, 1433container As NamespaceOrTypeSymbol, 1446container As NamespaceOrTypeSymbol, 1459container As NamespaceOrTypeSymbol, 1472container As NamespaceOrTypeSymbol,
Symbols\Source\SourceModuleSymbol.vb (13)
371Dim membersMap = New HashSet(Of NamespaceOrTypeSymbol) 437membersMap As HashSet(Of NamespaceOrTypeSymbol), 456member As NamespaceOrTypeSymbol, 501Dim namespaceOrType As NamespaceOrTypeSymbol = memberImports(i).NamespaceOrType 513Dim target As NamespaceOrTypeSymbol = aliasImports(i).Alias.Target 612VisitAllSourceTypesAndNamespaces(Sub(typeOrNamespace As NamespaceOrTypeSymbol) 689VisitAllSourceTypesAndNamespaces(Sub(typeOrNamespace As NamespaceOrTypeSymbol) 726Private Sub VisitAllSourceTypesAndNamespaces(visitor As Action(Of NamespaceOrTypeSymbol), tasks As ConcurrentStack(Of Task), cancellationToken As CancellationToken) 731Private Sub VisitTypesAndNamespacesWithin(ns As NamespaceOrTypeSymbol, visitor As Action(Of NamespaceOrTypeSymbol), tasks As ConcurrentStack(Of Task), cancellationToken As CancellationToken) 732Dim stack = ArrayBuilder(Of NamespaceOrTypeSymbol).GetInstance 756stack.Push(DirectCast(child, NamespaceOrTypeSymbol)) 1152namespaceOrType As NamespaceOrTypeSymbol,
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (2)
209Private Shared Sub FindGroupClassBaseTypes(nameParts() As String, current As NamespaceOrTypeSymbol, nextPart As Integer, candidates As ArrayBuilder(Of NamedTypeSymbol)) 229FindGroupClassBaseTypes(nameParts, DirectCast(member, NamespaceOrTypeSymbol), nextPart, candidates)
Symbols\Source\SourceNamedTypeSymbol.vb (2)
76containingSymbol As NamespaceOrTypeSymbol, 489Dim container = TryCast(Me.ContainingSymbol, NamespaceOrTypeSymbol)
Symbols\Source\SourceNamespaceSymbol.vb (9)
20Private _nameToMembersMap As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol)) 125Private Function GetNameToMembersMap() As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol)) 136Private Function MakeNameToMembersMap() As Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol)) 148Dim symbol As NamespaceOrTypeSymbol = BuildSymbol(declaration) 155Dim result As New Dictionary(Of String, ImmutableArray(Of NamespaceOrTypeSymbol))(builder.Count, IdentifierComparison.Comparer) 156ImmutableArrayExtensions.CreateNameToMembersMap(Of String, NamespaceOrTypeSymbol, NamedTypeSymbol, NamespaceSymbol)(builder, result) 160Private Function BuildSymbol(decl As MergedNamespaceOrTypeDeclaration) As NamespaceOrTypeSymbol 191ImmutableArrayExtensions.GetTypesFromMemberMap(Of String, NamespaceOrTypeSymbol, NamedTypeSymbol)( 227Dim members As ImmutableArray(Of NamespaceOrTypeSymbol) = Nothing
Symbols\Symbol.vb (1)
202Friend ReadOnly Property ContainingNamespaceOrType As NamespaceOrTypeSymbol
Symbols\SymbolExtensions.vb (3)
351Friend Function OfMinimalArity(symbols As IEnumerable(Of NamespaceOrTypeSymbol)) As NamespaceOrTypeSymbol 352Dim minAritySymbol As NamespaceOrTypeSymbol = Nothing