2 types derived from NamespaceOrTypeSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\NamespaceSymbol.cs (1)
21internal abstract partial class NamespaceSymbol : NamespaceOrTypeSymbol, INamespaceSymbolInternal
Symbols\TypeSymbol.cs (1)
28internal abstract partial class TypeSymbol : NamespaceOrTypeSymbol, ITypeSymbolInternal
218 references to NamespaceOrTypeSymbol
Microsoft.CodeAnalysis.CSharp (218)
Binder\Binder_Crefs.cs (14)
48NamespaceOrTypeSymbol result = BindNamespaceOrTypeSymbolInCref(syntax.Type); 69NamespaceOrTypeSymbol container = BindNamespaceOrTypeSymbolInCref(syntax.Container); 83private NamespaceOrTypeSymbol BindNamespaceOrTypeSymbolInCref(TypeSyntax syntax) 95NamespaceOrTypeSymbol namespaceOrTypeSymbol = BindNamespaceOrTypeSymbol(syntax, BindingDiagnosticBag.Discarded).NamespaceOrTypeSymbol; 101private ImmutableArray<Symbol> BindMemberCref(MemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 147private ImmutableArray<Symbol> BindNameMemberCref(NameMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 198private ImmutableArray<Symbol> BindIndexerMemberCref(IndexerMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 224private ImmutableArray<Symbol> BindExtensionMemberCref(ExtensionMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 272ImmutableArray<Symbol> computeSortedAndFilteredCrefExtensionMembers(NamespaceOrTypeSymbol? containerOpt, string name, int extensionArity, int arity, TypeArgumentListSyntax? extensionTypeArguments, BindingDiagnosticBag diagnostics, ExtensionMemberCrefSyntax syntax) 373ImmutableArray<NamedTypeSymbol> candidateTypes(NamespaceOrTypeSymbol? containerOpt) 394private ImmutableArray<Symbol> BindOperatorMemberCref(OperatorMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 469private ImmutableArray<Symbol> BindConversionOperatorMemberCref(ConversionOperatorMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 534private ImmutableArray<Symbol> ComputeSortedCrefMembers(CSharpSyntaxNode syntax, NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, BindingDiagnosticBag diagnostics) 542private ImmutableArray<Symbol> ComputeSortedCrefMembers(NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, CSharpSyntaxNode syntax,
Binder\Binder_Expressions.cs (1)
10173private Symbol GetSymbolOrMethodOrPropertyGroup(LookupResult result, SyntaxNode node, string plainName, int arity, ArrayBuilder<Symbol> methodOrPropertyGroup, BindingDiagnosticBag diagnostics, out bool wasError, NamespaceOrTypeSymbol qualifierOpt)
Binder\Binder_Lookup.cs (12)
29NamespaceOrTypeSymbol qualifierOpt, 133NamespaceOrTypeSymbol qualifierOpt, 154private void LookupMembersWithFallback(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null, LookupOptions options = LookupOptions.Default) 170protected void LookupMembersInternal(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 407var error = new ExtendedErrorTypeSymbol((NamespaceOrTypeSymbol)null, name, arity, diagInfo, unreported: true); 569NamespaceOrTypeSymbol qualifierOpt, 1395internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, string name, LookupOptions options, Binder originalBinder) 1419internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, LookupOptions options, Binder originalBinder) 1536else if ((options & LookupOptions.NamespacesOrTypesOnly) != 0 && !(unwrappedSymbol is NamespaceOrTypeSymbol)) 1698if ((options & LookupOptions.NamespacesOrTypesOnly) != 0 && !(symbol is NamespaceOrTypeSymbol)) 1957internal void AddMemberLookupSymbolsInfo(LookupSymbolsInfo result, NamespaceOrTypeSymbol nsOrType, LookupOptions options, Binder originalBinder) 2046var targetSymbol = aliasSymbol.GetAliasTarget(basesBeingResolved: null);
Binder\Binder_Symbols.cs (21)
354private NamespaceOrTypeSymbol GetContainingNamespaceOrNonExtensionType(Symbol symbol) 592NamespaceOrTypeSymbol left = bindingResult is AliasSymbol alias ? alias.Target : (NamespaceOrTypeSymbol)bindingResult; 834NamespaceOrTypeSymbol qualifierOpt = null) 861NamespaceOrTypeSymbol qualifierOpt) 922var aliasTarget = ((AliasSymbol)bindingResult).GetAliasTarget(basesBeingResolved); 1111return NamespaceOrTypeOrAliasSymbolWithAnnotations.CreateUnannotated(symbol.IsNullableEnabled, (NamespaceOrTypeSymbol)UnwrapAlias(symbol.Symbol, out discarded, diagnostics, syntax, basesBeingResolved)); 1121return NamespaceOrTypeOrAliasSymbolWithAnnotations.CreateUnannotated(symbol.IsNullableEnabled, (NamespaceOrTypeSymbol)UnwrapAlias(symbol.Symbol, out alias, diagnostics, syntax, basesBeingResolved)); 1142var result = alias.GetAliasTarget(basesBeingResolved); 1167NamespaceOrTypeSymbol qualifierOpt) 1275NamespaceOrTypeSymbol qualifierOpt, 1335NamespaceOrTypeSymbol qualifierOpt, 1671var left = BindNamespaceOrTypeSymbol(leftName, diagnostics, basesBeingResolved, suppressUseSiteDiagnostics: false).NamespaceOrTypeSymbol; 1995NamespaceOrTypeSymbol qualifierOpt, 2024NamespaceOrTypeSymbol qualifierOpt, 2281if (first is NamespaceOrTypeSymbol && second is NamespaceOrTypeSymbol) 2423if ((symbols.Count > 1) || (symbols[0] is NamespaceOrTypeSymbol || symbols[0] is AliasSymbol) || 2630private CSDiagnosticInfo NotFound(SyntaxNode where, string simpleName, int arity, string whereText, BindingDiagnosticBag diagnostics, string aliasOpt, NamespaceOrTypeSymbol qualifierOpt, LookupOptions options) 2713protected virtual AssemblySymbol GetForwardedToAssemblyInUsingNamespaces(string metadataName, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 2785protected AssemblySymbol GetForwardedToAssembly(string name, int arity, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location)
Binder\Binder.NamespaceOrTypeOrAliasSymbolWithAnnotations.cs (2)
40internal NamespaceOrTypeSymbol NamespaceOrTypeSymbol => Symbol as NamespaceOrTypeSymbol;
Binder\BinderFactory.BinderFactoryVisitor.cs (9)
666var container = ((NamespaceOrTypeSymbol)outer.ContainingMemberOrLambda).GetSourceTypeMember(parent); 701var container = ((NamespaceOrTypeSymbol)outer.ContainingMemberOrLambda).GetSourceTypeMember(parent.Identifier.ValueText, 0, SyntaxKind.EnumDeclaration, parent); 766var typeSymbol = ((NamespaceOrTypeSymbol)resultBinder.ContainingMemberOrLambda).GetSourceTypeMember(parent); 908NamespaceOrTypeSymbol container; 1268SourceNamedTypeSymbol type = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((TypeDeclarationSyntax)memberSyntax); 1276SourceNamedTypeSymbol type = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((TypeDeclarationSyntax)memberSyntax); 1320SourceNamedTypeSymbol delegateType = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((DelegateDeclarationSyntax)memberSyntax); 1357SourceNamedTypeSymbol typeSymbol = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember(typeDeclSyntax); 1376SourceNamedTypeSymbol delegateType = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((DelegateDeclarationSyntax)memberSyntax);
Binder\ImportChain.cs (2)
79NamespaceOrTypeSymbol namespaceOrType = nsOrType.NamespaceOrType; 109NamespaceOrTypeSymbol target = symbol.Target;
Binder\Imports.cs (1)
102var previousTarget = previousUsing.NamespaceOrType;
Binder\InContainerBinder.cs (4)
23private readonly NamespaceOrTypeSymbol _container; 28internal InContainerBinder(NamespaceOrTypeSymbol container, Binder next) 35internal NamespaceOrTypeSymbol Container 118var error = new ExtendedErrorTypeSymbol((NamespaceOrTypeSymbol)null, name, arity, diagInfo, unreported: true);
Binder\NamespaceOrTypeAndUsingDirective.cs (2)
13public readonly NamespaceOrTypeSymbol NamespaceOrType; 17public NamespaceOrTypeAndUsingDirective(NamespaceOrTypeSymbol namespaceOrType, UsingDirectiveSyntax? usingDirective, ImmutableArray<AssemblySymbol> dependencies)
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
51protected override AssemblySymbol? GetForwardedToAssemblyInUsingNamespaces(string name, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location)
Compilation\CSharpCompilation.cs (19)
1673var uniqueUsings = PooledHashSet<NamespaceOrTypeSymbol>.GetInstance(); 2028var mainTypeOrNamespace = globalNamespace.GetNamespaceOrTypeByQualifiedName(nameParts).OfMinimalArity(); 5054private readonly PooledDictionary<Declaration, NamespaceOrTypeSymbol> _cache; 5064_cache = PooledDictionary<Declaration, NamespaceOrTypeSymbol>.GetInstance(); 5098var container = GetSpineSymbol(spine); 5099var symbol = GetSymbol(container, current); 5110var container = GetSpineSymbol(spine); 5111var symbol = GetSymbol(container, current); 5151var container = GetSpineSymbol(spine); 5168protected NamespaceOrTypeSymbol? GetSpineSymbol(ArrayBuilder<MergedNamespaceOrTypeDeclaration> spine) 5175var symbol = GetCachedSymbol(spine[spine.Count - 1]); 5181NamespaceOrTypeSymbol? current = _compilation.GlobalNamespace; 5190private NamespaceOrTypeSymbol? GetCachedSymbol(MergedNamespaceOrTypeDeclaration declaration) 5191=> _cache.TryGetValue(declaration, out NamespaceOrTypeSymbol? symbol) 5195private NamespaceOrTypeSymbol? GetSymbol(NamespaceOrTypeSymbol? container, MergedNamespaceOrTypeDeclaration declaration) 5204AddCache(container.GetMembers(declaration.Name).OfType<NamespaceOrTypeSymbol>()); 5214private void AddCache(IEnumerable<NamespaceOrTypeSymbol> symbols) 5216foreach (var symbol in symbols)
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (4)
39var uniqueUsings = PooledHashSet<NamespaceOrTypeSymbol>.GetInstance(); 60var imported = usingsBinder.BindNamespaceOrTypeSymbol(qualifiedName, directiveDiagnostics).NamespaceOrTypeSymbol; 143NamespaceOrTypeSymbol target = @using.NamespaceOrType; 166void recordImportDependencies(NamespaceOrTypeSymbol target)
Compilation\CSharpSemanticModel.cs (6)
1431NamespaceOrTypeSymbol container = null, 1500NamespaceOrTypeSymbol container = null, 1526NamespaceOrTypeSymbol container = null, 1575NamespaceOrTypeSymbol container, 1714private void AppendSymbolsWithName(ArrayBuilder<ISymbol> results, string name, Binder binder, NamespaceOrTypeSymbol container, LookupOptions options, LookupSymbolsInfo info) 1752NamespaceOrTypeSymbol container,
Compilation\SyntaxTreeSemanticModel.cs (14)
1325NamespaceOrTypeSymbol container; 1394var container = GetDeclaredTypeMemberContainer(extensionDeclaration); 1424var container = GetDeclaredTypeMemberContainer(declarationSyntax); 1431private NamespaceOrTypeSymbol GetDeclaredNamespaceOrType(CSharpSyntaxNode declarationSyntax) 1614var container = GetDeclaredTypeMemberContainer(propertyOrEventDecl); 1630NamespaceOrTypeSymbol container; 1748private NamespaceSymbol GetDeclaredNamespace(NamespaceOrTypeSymbol container, TextSpan declarationSpan, NameSyntax name) 1758var left = GetDeclaredNamespace(container, declarationSpan, qn.Left) as NamespaceOrTypeSymbol; 1779private Symbol GetDeclaredMember(NamespaceOrTypeSymbol container, TextSpan declarationSpan, bool isKnownToBeANamespace, string name = null) 1862var container = GetDeclaredTypeMemberContainer(field); 2353private NamespaceOrTypeSymbol GetDeclaredTypeMemberContainer(CSharpSyntaxNode memberDeclaration) 2379var container = GetDeclaredNamespaceOrType(memberDeclaration.Parent); 2403var container = GetDeclaredTypeMemberContainer(declarationSyntax);
Compiler\ClsComplianceChecker.cs (1)
802private void CheckMemberDistinctness(NamespaceOrTypeSymbol symbol)
Emitter\Model\PEModuleBuilder.cs (10)
226var namespacesAndTopLevelTypesToProcess = ArrayBuilder<NamespaceOrTypeSymbol>.GetInstance(); 230var symbol = namespacesAndTopLevelTypesToProcess.Pop(); 247namespacesAndTopLevelTypesToProcess.Push((NamespaceOrTypeSymbol)member); 344var namespacesAndTypesToProcess = new Stack<NamespaceOrTypeSymbol>(); 351NamespaceOrTypeSymbol symbol = namespacesAndTypesToProcess.Pop(); 367namespacesAndTypesToProcess.Push((NamespaceOrTypeSymbol)member); 394namespacesAndTypesToProcess.Push((NamespaceOrTypeSymbol)member); 581private static void GetExportedTypes(NamespaceOrTypeSymbol symbol, int parentIndex, ArrayBuilder<Cci.ExportedType> builder) 604var namespaceOrType = member as NamespaceOrTypeSymbol;
Symbols\AliasSymbol.cs (17)
74internal static AliasSymbol CreateCustomDebugInfoAlias(NamespaceOrTypeSymbol targetSymbol, SyntaxToken aliasToken, Symbol containingSymbol, bool isExtern) 83var previousTarget = Target; 111/// Gets the <see cref="NamespaceOrTypeSymbol"/> for the 114public abstract NamespaceOrTypeSymbol Target 233internal abstract NamespaceOrTypeSymbol GetAliasTarget(ConsList<TypeSymbol>? basesBeingResolved); 283private NamespaceOrTypeSymbol? _aliasTarget; 303/// Gets the <see cref="NamespaceOrTypeSymbol"/> for the 306public override NamespaceOrTypeSymbol Target 315internal override NamespaceOrTypeSymbol GetAliasTarget(ConsList<TypeSymbol>? basesBeingResolved) 323NamespaceOrTypeSymbol symbol = this.IsExtern 370private NamespaceOrTypeSymbol ResolveAliasTarget( 419var namespaceOrType = annotatedNamespaceOrType.NamespaceOrTypeSymbol; 438private readonly NamespaceOrTypeSymbol _aliasTarget; 440internal AliasSymbolFromResolvedTarget(NamespaceOrTypeSymbol target, string aliasName, Symbol containingSymbol, ImmutableArray<Location> locations, bool isExtern) 447/// Gets the <see cref="NamespaceOrTypeSymbol"/> for the 450public override NamespaceOrTypeSymbol Target 458internal override NamespaceOrTypeSymbol GetAliasTarget(ConsList<TypeSymbol>? basesBeingResolved)
Symbols\ExtendedErrorTypeSymbol.cs (6)
22private readonly NamespaceOrTypeSymbol? _containingSymbol; 33internal ExtendedErrorTypeSymbol(NamespaceOrTypeSymbol? containingSymbol, string name, int arity, DiagnosticInfo? errorInfo, bool unreported = false, bool variableUsedBeforeDeclaration = false) 52private ExtendedErrorTypeSymbol(NamespaceOrTypeSymbol? containingSymbol, string name, int arity, DiagnosticInfo? errorInfo, bool unreported, bool variableUsedBeforeDeclaration, ImmutableArray<Symbol> candidateSymbols, LookupResultKind resultKind) 64internal ExtendedErrorTypeSymbol(NamespaceOrTypeSymbol guessSymbol, LookupResultKind resultKind, DiagnosticInfo errorInfo, bool unreported = false) 69internal ExtendedErrorTypeSymbol(NamespaceOrTypeSymbol? containingSymbol, Symbol guessSymbol, LookupResultKind resultKind, DiagnosticInfo errorInfo, bool unreported = false) 74internal ExtendedErrorTypeSymbol(NamespaceOrTypeSymbol? containingSymbol, ImmutableArray<Symbol> candidateSymbols, LookupResultKind resultKind, DiagnosticInfo errorInfo, int arity, bool unreported = false)
Symbols\MemberSymbolExtensions.cs (4)
551internal static NamespaceOrTypeSymbol OfMinimalArity(this IEnumerable<NamespaceOrTypeSymbol> symbols) 553NamespaceOrTypeSymbol minAritySymbol = null; 555foreach (var symbol in symbols)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
36private readonly NamespaceOrTypeSymbol _container; 310NamespaceOrTypeSymbol container, 3178NamespaceOrTypeSymbol container, 3249NamespaceOrTypeSymbol container,
Symbols\MissingMetadataTypeSymbol.cs (1)
253foreach (NamespaceOrTypeSymbol symbol in container.GetMembers(namespaces[i]))
Symbols\NamedTypeSymbol.cs (1)
1005/// <see cref="NamespaceOrTypeSymbol.GetMembersUnordered"/>.
Symbols\NamespaceOrTypeSymbol.cs (6)
259NamespaceOrTypeSymbol scope = this; 394internal IEnumerable<NamespaceOrTypeSymbol>? GetNamespaceOrTypeByQualifiedName(IEnumerable<string> qualifiedName) 396NamespaceOrTypeSymbol namespaceOrType = this; 397IEnumerable<NamespaceOrTypeSymbol>? symbols = null; 406return SpecializedCollections.EmptyEnumerable<NamespaceOrTypeSymbol>(); 410symbols = namespaceOrType.GetMembers(name).OfType<NamespaceOrTypeSymbol>();
Symbols\PublicModel\ArrayTypeSymbol.cs (1)
33internal override Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol => _underlying;
Symbols\PublicModel\DynamicTypeSymbol.cs (1)
30internal override Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol => _underlying;
Symbols\PublicModel\ErrorTypeSymbol.cs (1)
30internal override Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol => _underlying;
Symbols\PublicModel\FunctionPointerTypeSymbol.cs (1)
23internal override Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol => _underlying;
Symbols\PublicModel\NamespaceOrTypeSymbol.cs (1)
11internal abstract Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol { get; }
Symbols\PublicModel\NamespaceSymbol.cs (3)
24internal override Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol => _underlying; 45yield return ((Symbols.NamespaceOrTypeSymbol)n).GetPublicSymbol(); 53yield return ((Symbols.NamespaceOrTypeSymbol)n).GetPublicSymbol();
Symbols\PublicModel\NonErrorNamedTypeSymbol.cs (1)
31internal override Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol => _underlying;
Symbols\PublicModel\PointerTypeSymbol.cs (1)
31internal override Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol => _underlying;
Symbols\PublicModel\TypeParameterSymbol.cs (1)
32internal override Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol => _underlying;
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
21internal ImplicitNamedTypeSymbol(NamespaceOrTypeSymbol containingSymbol, MergedTypeDeclaration declaration, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceMemberContainerSymbol.cs (6)
202private readonly NamespaceOrTypeSymbol _containingSymbol; 238NamespaceOrTypeSymbol containingSymbol, 932var stack = ArrayBuilder<NamespaceOrTypeSymbol>.GetInstance(); 938var namespaceOrType = stack.Pop(); 958if (members[i] is NamespaceOrTypeSymbol childNamespaceOrType) 6298internal void DiscoverInterceptors(ArrayBuilder<NamespaceOrTypeSymbol> toSearch)
Symbols\Source\SourceModuleSymbol.cs (3)
372var toVisit = ArrayBuilder<NamespaceOrTypeSymbol>.GetInstance(); 404var item = toVisit.Pop(); 413if (member is not NamespaceOrTypeSymbol namespaceOrType)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
76internal SourceNamedTypeSymbol(NamespaceOrTypeSymbol containingSymbol, MergedTypeDeclaration declaration, BindingDiagnosticBag diagnostics, TupleExtraData tupleData = null)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (13)
270var uniqueUsings = SpecializedSymbolCollections.GetPooledSymbolHashSetInstance<NamespaceOrTypeSymbol>(); 654PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings = null; 655PooledHashSet<NamespaceOrTypeSymbol>? uniqueGlobalUsings = null; 787var imported = declarationBinder.BindNamespaceOrTypeSymbol(usingDirective.NamespaceOrType, directiveDiagnostics, basesBeingResolved).NamespaceOrTypeSymbol; 885static PooledHashSet<NamespaceOrTypeSymbol> getOrCreateUniqueUsings(ref PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes) 889uniqueUsings = SpecializedSymbolCollections.GetPooledSymbolHashSetInstance<NamespaceOrTypeSymbol>(); 896static PooledHashSet<NamespaceOrTypeSymbol> getOrCreateUniqueGlobalUsingsNotInTree(ref PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes, SyntaxTree tree) 900uniqueUsings = SpecializedSymbolCollections.GetPooledSymbolHashSetInstance<NamespaceOrTypeSymbol>(); 1006NamespaceOrTypeSymbol target = alias.Alias.GetAliasTarget(basesBeingResolved: null); 1042NamespaceOrTypeSymbol target = @using.NamespaceOrType; 1100void recordImportDependencies(UsingDirectiveSyntax usingDirective, NamespaceOrTypeSymbol target)
Symbols\Source\SourceNamespaceSymbol.cs (15)
30private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> _nameToMembersMap; 175ImmutableArray<NamespaceOrTypeSymbol> members; 177? members.Cast<NamespaceOrTypeSymbol, Symbol>() 226private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> GetNameToMembersMap() 258ImmutableArrayExtensions.GetTypesFromMemberMap<ReadOnlyMemory<char>, NamespaceOrTypeSymbol, NamedTypeSymbol>( 266private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> MakeNameToMembersMap(BindingDiagnosticBag diagnostics) 280NamespaceOrTypeSymbol symbol = BuildSymbol(declaration, diagnostics); 284var result = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>>(builder.Count, ReadOnlyMemoryOfCharComparer.Instance); 285ImmutableArrayExtensions.CreateNameToMembersMap<ReadOnlyMemory<char>, NamespaceOrTypeSymbol, NamedTypeSymbol, NamespaceSymbol>(builder, result); 293private static void CheckMembers(NamespaceSymbol @namespace, Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> result, BindingDiagnosticBag diagnostics) 306foreach (var symbol in result[name]) 354case ({ } left1, NamespaceOrTypeSymbol right1) when isFileLocalTypeInSeparateFileFrom(left1, right1): 383static bool isFileLocalTypeInSeparateFileFrom(SourceMemberContainerTypeSymbol possibleFileLocalType, NamespaceOrTypeSymbol otherSymbol) 404private NamespaceOrTypeSymbol BuildSymbol(MergedNamespaceOrTypeDeclaration declaration, BindingDiagnosticBag diagnostics) 444foreach (var member in array)
Symbols\SymbolExtensions.cs (5)
131internal static NamespaceOrTypeSymbol? ContainingNamespaceOrType(this Symbol symbol) 141return (NamespaceOrTypeSymbol)containingSymbol; 413internal static NamespaceOrTypeSymbol? EnsureCSharpSymbolOrNull(this INamespaceOrTypeSymbol? symbol, string paramName) 415return (NamespaceOrTypeSymbol?)EnsureCSharpSymbolOrNull((ISymbol?)symbol, paramName); 616internal static INamespaceOrTypeSymbol? GetPublicSymbol(this NamespaceOrTypeSymbol? symbol)
Symbols\SymbolVisitor`2.cs (1)
74/// cref="NamespaceOrTypeSymbol.GetMembers()" />