2 types derived from NamespaceOrTypeSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\NamespaceSymbol.cs (1)
20internal abstract partial class NamespaceSymbol : NamespaceOrTypeSymbol, INamespaceSymbolInternal
Symbols\TypeSymbol.cs (1)
28internal abstract partial class TypeSymbol : NamespaceOrTypeSymbol, ITypeSymbolInternal
208 references to NamespaceOrTypeSymbol
Microsoft.CodeAnalysis.CSharp (208)
Binder\Binder.NamespaceOrTypeOrAliasSymbolWithAnnotations.cs (2)
40internal NamespaceOrTypeSymbol NamespaceOrTypeSymbol => Symbol as NamespaceOrTypeSymbol;
Binder\Binder_Crefs.cs (11)
46NamespaceOrTypeSymbol result = BindNamespaceOrTypeSymbolInCref(syntax.Type); 67NamespaceOrTypeSymbol container = BindNamespaceOrTypeSymbolInCref(syntax.Container); 81private NamespaceOrTypeSymbol BindNamespaceOrTypeSymbolInCref(TypeSyntax syntax) 93NamespaceOrTypeSymbol namespaceOrTypeSymbol = BindNamespaceOrTypeSymbol(syntax, BindingDiagnosticBag.Discarded).NamespaceOrTypeSymbol; 99private ImmutableArray<Symbol> BindMemberCref(MemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 142private ImmutableArray<Symbol> BindNameMemberCref(NameMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 193private ImmutableArray<Symbol> BindIndexerMemberCref(IndexerMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 221private ImmutableArray<Symbol> BindOperatorMemberCref(OperatorMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 264private ImmutableArray<Symbol> BindConversionOperatorMemberCref(ConversionOperatorMemberCrefSyntax syntax, NamespaceOrTypeSymbol? containerOpt, out Symbol? ambiguityWinner, BindingDiagnosticBag diagnostics) 329private ImmutableArray<Symbol> ComputeSortedCrefMembers(CSharpSyntaxNode syntax, NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, BindingDiagnosticBag diagnostics) 337private ImmutableArray<Symbol> ComputeSortedCrefMembers(NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, CSharpSyntaxNode syntax,
Binder\Binder_Expressions.cs (1)
8847private 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, 127NamespaceOrTypeSymbol qualifierOpt, 148private void LookupMembersWithFallback(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null, LookupOptions options = LookupOptions.Default) 164protected void LookupMembersInternal(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 306var error = new ExtendedErrorTypeSymbol((NamespaceOrTypeSymbol)null, name, arity, diagInfo, unreported: true); 489NamespaceOrTypeSymbol qualifierOpt, 1293internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, string name, LookupOptions options, Binder originalBinder) 1317internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, LookupOptions options, Binder originalBinder) 1430else if ((options & LookupOptions.NamespacesOrTypesOnly) != 0 && !(unwrappedSymbol is NamespaceOrTypeSymbol)) 1592if ((options & LookupOptions.NamespacesOrTypesOnly) != 0 && !(symbol is NamespaceOrTypeSymbol)) 1851internal void AddMemberLookupSymbolsInfo(LookupSymbolsInfo result, NamespaceOrTypeSymbol nsOrType, LookupOptions options, Binder originalBinder) 1940var targetSymbol = aliasSymbol.GetAliasTarget(basesBeingResolved: null);
Binder\Binder_Symbols.cs (21)
348private NamespaceOrTypeSymbol GetContainingNamespaceOrType(Symbol symbol) 580NamespaceOrTypeSymbol left = bindingResult is AliasSymbol alias ? alias.Target : (NamespaceOrTypeSymbol)bindingResult; 822NamespaceOrTypeSymbol qualifierOpt = null) 849NamespaceOrTypeSymbol qualifierOpt) 910var aliasTarget = ((AliasSymbol)bindingResult).GetAliasTarget(basesBeingResolved); 1099return NamespaceOrTypeOrAliasSymbolWithAnnotations.CreateUnannotated(symbol.IsNullableEnabled, (NamespaceOrTypeSymbol)UnwrapAlias(symbol.Symbol, out discarded, diagnostics, syntax, basesBeingResolved)); 1109return NamespaceOrTypeOrAliasSymbolWithAnnotations.CreateUnannotated(symbol.IsNullableEnabled, (NamespaceOrTypeSymbol)UnwrapAlias(symbol.Symbol, out alias, diagnostics, syntax, basesBeingResolved)); 1130var result = alias.GetAliasTarget(basesBeingResolved); 1154NamespaceOrTypeSymbol qualifierOpt) 1262NamespaceOrTypeSymbol qualifierOpt, 1322NamespaceOrTypeSymbol qualifierOpt, 1590var left = BindNamespaceOrTypeSymbol(leftName, diagnostics, basesBeingResolved, suppressUseSiteDiagnostics: false).NamespaceOrTypeSymbol; 1892NamespaceOrTypeSymbol qualifierOpt, 1921NamespaceOrTypeSymbol qualifierOpt, 2178if (first is NamespaceOrTypeSymbol && second is NamespaceOrTypeSymbol) 2320if ((symbols.Count > 1) || (symbols[0] is NamespaceOrTypeSymbol || symbols[0] is AliasSymbol) || 2527private CSDiagnosticInfo NotFound(SyntaxNode where, string simpleName, int arity, string whereText, BindingDiagnosticBag diagnostics, string aliasOpt, NamespaceOrTypeSymbol qualifierOpt, LookupOptions options) 2610protected virtual AssemblySymbol GetForwardedToAssemblyInUsingNamespaces(string metadataName, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 2683protected AssemblySymbol GetForwardedToAssembly(string name, int arity, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location)
Binder\BinderFactory.BinderFactoryVisitor.cs (8)
675var container = ((NamespaceOrTypeSymbol)outer.ContainingMemberOrLambda).GetSourceTypeMember(parent); 710var container = ((NamespaceOrTypeSymbol)outer.ContainingMemberOrLambda).GetSourceTypeMember(parent.Identifier.ValueText, 0, SyntaxKind.EnumDeclaration, parent); 775var typeSymbol = ((NamespaceOrTypeSymbol)resultBinder.ContainingMemberOrLambda).GetSourceTypeMember(parent); 904NamespaceOrTypeSymbol container; 1251SourceNamedTypeSymbol type = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((TypeDeclarationSyntax)memberSyntax); 1288SourceNamedTypeSymbol delegateType = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((DelegateDeclarationSyntax)memberSyntax); 1325SourceNamedTypeSymbol typeSymbol = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember(typeDeclSyntax); 1344SourceNamedTypeSymbol 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 121var 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)
1581var uniqueUsings = PooledHashSet<NamespaceOrTypeSymbol>.GetInstance(); 1938var mainTypeOrNamespace = globalNamespace.GetNamespaceOrTypeByQualifiedName(mainTypeName.Split('.')).OfMinimalArity(); 4811private readonly PooledDictionary<Declaration, NamespaceOrTypeSymbol> _cache; 4821_cache = PooledDictionary<Declaration, NamespaceOrTypeSymbol>.GetInstance(); 4855var container = GetSpineSymbol(spine); 4856var symbol = GetSymbol(container, current); 4867var container = GetSpineSymbol(spine); 4868var symbol = GetSymbol(container, current); 4908var container = GetSpineSymbol(spine); 4925protected NamespaceOrTypeSymbol? GetSpineSymbol(ArrayBuilder<MergedNamespaceOrTypeDeclaration> spine) 4932var symbol = GetCachedSymbol(spine[spine.Count - 1]); 4938NamespaceOrTypeSymbol? current = _compilation.GlobalNamespace; 4947private NamespaceOrTypeSymbol? GetCachedSymbol(MergedNamespaceOrTypeDeclaration declaration) 4948=> _cache.TryGetValue(declaration, out NamespaceOrTypeSymbol? symbol) 4952private NamespaceOrTypeSymbol? GetSymbol(NamespaceOrTypeSymbol? container, MergedNamespaceOrTypeDeclaration declaration) 4961AddCache(container.GetMembers(declaration.Name).OfType<NamespaceOrTypeSymbol>()); 4971private void AddCache(IEnumerable<NamespaceOrTypeSymbol> symbols) 4973foreach (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)
1415NamespaceOrTypeSymbol container = null, 1485NamespaceOrTypeSymbol container = null, 1511NamespaceOrTypeSymbol container = null, 1560NamespaceOrTypeSymbol container, 1687private void AppendSymbolsWithName(ArrayBuilder<ISymbol> results, string name, Binder binder, NamespaceOrTypeSymbol container, LookupOptions options, LookupSymbolsInfo info) 1725NamespaceOrTypeSymbol container,
Compilation\SyntaxTreeSemanticModel.cs (13)
1325NamespaceOrTypeSymbol container; 1397var container = GetDeclaredTypeMemberContainer(declarationSyntax); 1404private NamespaceOrTypeSymbol GetDeclaredNamespaceOrType(CSharpSyntaxNode declarationSyntax) 1587var container = GetDeclaredTypeMemberContainer(propertyOrEventDecl); 1603NamespaceOrTypeSymbol container; 1720private NamespaceSymbol GetDeclaredNamespace(NamespaceOrTypeSymbol container, TextSpan declarationSpan, NameSyntax name) 1730var left = GetDeclaredNamespace(container, declarationSpan, qn.Left) as NamespaceOrTypeSymbol; 1751private Symbol GetDeclaredMember(NamespaceOrTypeSymbol container, TextSpan declarationSpan, bool isKnownToBeANamespace, string name = null) 1840var container = GetDeclaredTypeMemberContainer(field); 2299private NamespaceOrTypeSymbol GetDeclaredTypeMemberContainer(CSharpSyntaxNode memberDeclaration) 2325var container = GetDeclaredNamespaceOrType(memberDeclaration.Parent); 2349var container = GetDeclaredTypeMemberContainer(declarationSyntax);
Compiler\ClsComplianceChecker.cs (1)
802private void CheckMemberDistinctness(NamespaceOrTypeSymbol symbol)
Emitter\Model\PEModuleBuilder.cs (9)
222var namespacesAndTopLevelTypesToProcess = ArrayBuilder<NamespaceOrTypeSymbol>.GetInstance(); 243namespacesAndTopLevelTypesToProcess.Push((NamespaceOrTypeSymbol)member); 340var namespacesAndTypesToProcess = new Stack<NamespaceOrTypeSymbol>(); 347NamespaceOrTypeSymbol symbol = namespacesAndTypesToProcess.Pop(); 363namespacesAndTypesToProcess.Push((NamespaceOrTypeSymbol)member); 385namespacesAndTypesToProcess.Push((NamespaceOrTypeSymbol)member); 581private static void GetExportedTypes(NamespaceOrTypeSymbol symbol, int parentIndex, ArrayBuilder<Cci.ExportedType> builder) 602var namespaceOrType = member as NamespaceOrTypeSymbol;
Symbols\AliasSymbol.cs (17)
73internal static AliasSymbol CreateCustomDebugInfoAlias(NamespaceOrTypeSymbol targetSymbol, SyntaxToken aliasToken, Symbol containingSymbol, bool isExtern) 82var previousTarget = Target; 110/// Gets the <see cref="NamespaceOrTypeSymbol"/> for the 113public abstract NamespaceOrTypeSymbol Target 230internal abstract NamespaceOrTypeSymbol GetAliasTarget(ConsList<TypeSymbol>? basesBeingResolved); 280private NamespaceOrTypeSymbol? _aliasTarget; 300/// Gets the <see cref="NamespaceOrTypeSymbol"/> for the 303public override NamespaceOrTypeSymbol Target 312internal override NamespaceOrTypeSymbol GetAliasTarget(ConsList<TypeSymbol>? basesBeingResolved) 320NamespaceOrTypeSymbol symbol = this.IsExtern 370private NamespaceOrTypeSymbol ResolveAliasTarget( 415var namespaceOrType = annotatedNamespaceOrType.NamespaceOrTypeSymbol; 434private readonly NamespaceOrTypeSymbol _aliasTarget; 436internal AliasSymbolFromResolvedTarget(NamespaceOrTypeSymbol target, string aliasName, Symbol containingSymbol, ImmutableArray<Location> locations, bool isExtern) 443/// Gets the <see cref="NamespaceOrTypeSymbol"/> for the 446public override NamespaceOrTypeSymbol Target 454internal 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)
305internal static NamespaceOrTypeSymbol OfMinimalArity(this IEnumerable<NamespaceOrTypeSymbol> symbols) 307NamespaceOrTypeSymbol minAritySymbol = null; 309foreach (var symbol in symbols)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
33private readonly NamespaceOrTypeSymbol _container; 276NamespaceOrTypeSymbol container, 2548NamespaceOrTypeSymbol container, 2617NamespaceOrTypeSymbol container,
Symbols\MissingMetadataTypeSymbol.cs (1)
253foreach (NamespaceOrTypeSymbol symbol in container.GetMembers(namespaces[i]))
Symbols\NamedTypeSymbol.cs (1)
692/// <see cref="NamespaceOrTypeSymbol.GetMembersUnordered"/>.
Symbols\NamespaceOrTypeSymbol.cs (6)
258NamespaceOrTypeSymbol scope = this; 393internal IEnumerable<NamespaceOrTypeSymbol>? GetNamespaceOrTypeByQualifiedName(IEnumerable<string> qualifiedName) 395NamespaceOrTypeSymbol namespaceOrType = this; 396IEnumerable<NamespaceOrTypeSymbol>? symbols = null; 405return SpecializedCollections.EmptyEnumerable<NamespaceOrTypeSymbol>(); 409symbols = 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 (3)
193private readonly NamespaceOrTypeSymbol _containingSymbol; 224NamespaceOrTypeSymbol containingSymbol, 5397internal void DiscoverInterceptors(ArrayBuilder<NamespaceOrTypeSymbol> toSearch)
Symbols\Source\SourceModuleSymbol.cs (2)
343var toVisit = ArrayBuilder<NamespaceOrTypeSymbol>.GetInstance(); 384if (member is not NamespaceOrTypeSymbol namespaceOrType)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
73internal SourceNamedTypeSymbol(NamespaceOrTypeSymbol containingSymbol, MergedTypeDeclaration declaration, BindingDiagnosticBag diagnostics, TupleExtraData tupleData = null)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (13)
265var uniqueUsings = SpecializedSymbolCollections.GetPooledSymbolHashSetInstance<NamespaceOrTypeSymbol>(); 648PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings = null; 649PooledHashSet<NamespaceOrTypeSymbol>? uniqueGlobalUsings = null; 766var imported = declarationBinder.BindNamespaceOrTypeSymbol(usingDirective.NamespaceOrType, directiveDiagnostics, basesBeingResolved).NamespaceOrTypeSymbol; 863static PooledHashSet<NamespaceOrTypeSymbol> getOrCreateUniqueUsings(ref PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes) 867uniqueUsings = SpecializedSymbolCollections.GetPooledSymbolHashSetInstance<NamespaceOrTypeSymbol>(); 874static PooledHashSet<NamespaceOrTypeSymbol> getOrCreateUniqueGlobalUsingsNotInTree(ref PooledHashSet<NamespaceOrTypeSymbol>? uniqueUsings, ImmutableArray<NamespaceOrTypeAndUsingDirective> globalUsingNamespacesOrTypes, SyntaxTree tree) 878uniqueUsings = SpecializedSymbolCollections.GetPooledSymbolHashSetInstance<NamespaceOrTypeSymbol>(); 984NamespaceOrTypeSymbol target = alias.Alias.GetAliasTarget(basesBeingResolved: null); 1013NamespaceOrTypeSymbol target = @using.NamespaceOrType; 1066void recordImportDependencies(UsingDirectiveSyntax usingDirective, NamespaceOrTypeSymbol target)
Symbols\Source\SourceNamespaceSymbol.cs (15)
31private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> _nameToMembersMap; 173ImmutableArray<NamespaceOrTypeSymbol> members; 175? members.Cast<NamespaceOrTypeSymbol, Symbol>() 224private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> GetNameToMembersMap() 256ImmutableArrayExtensions.GetTypesFromMemberMap<ReadOnlyMemory<char>, NamespaceOrTypeSymbol, NamedTypeSymbol>( 264private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> MakeNameToMembersMap(BindingDiagnosticBag diagnostics) 278NamespaceOrTypeSymbol symbol = BuildSymbol(declaration, diagnostics); 282var result = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>>(builder.Count, ReadOnlyMemoryOfCharComparer.Instance); 283ImmutableArrayExtensions.CreateNameToMembersMap<ReadOnlyMemory<char>, NamespaceOrTypeSymbol, NamedTypeSymbol, NamespaceSymbol>(builder, result); 291private static void CheckMembers(NamespaceSymbol @namespace, Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> result, BindingDiagnosticBag diagnostics) 304foreach (var symbol in result[name]) 350case ({ } left1, NamespaceOrTypeSymbol right1) when isFileLocalTypeInSeparateFileFrom(left1, right1): 379static bool isFileLocalTypeInSeparateFileFrom(SourceMemberContainerTypeSymbol possibleFileLocalType, NamespaceOrTypeSymbol otherSymbol) 400private NamespaceOrTypeSymbol BuildSymbol(MergedNamespaceOrTypeDeclaration declaration, BindingDiagnosticBag diagnostics) 438foreach (var member in array)
Symbols\SymbolExtensions.cs (5)
129internal static NamespaceOrTypeSymbol? ContainingNamespaceOrType(this Symbol symbol) 139return (NamespaceOrTypeSymbol)containingSymbol; 408internal static NamespaceOrTypeSymbol? EnsureCSharpSymbolOrNull(this INamespaceOrTypeSymbol? symbol, string paramName) 410return (NamespaceOrTypeSymbol?)EnsureCSharpSymbolOrNull((ISymbol?)symbol, paramName); 611internal static INamespaceOrTypeSymbol? GetPublicSymbol(this NamespaceOrTypeSymbol? symbol)
Symbols\SymbolVisitor`2.cs (1)
74/// cref="NamespaceOrTypeSymbol.GetMembers()" />