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)
9226private 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) 378var error = new ExtendedErrorTypeSymbol((NamespaceOrTypeSymbol)null, name, arity, diagInfo, unreported: true); 562NamespaceOrTypeSymbol qualifierOpt, 1379internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, string name, LookupOptions options, Binder originalBinder) 1403internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, LookupOptions options, Binder originalBinder) 1516else if ((options & LookupOptions.NamespacesOrTypesOnly) != 0 && !(unwrappedSymbol is NamespaceOrTypeSymbol)) 1678if ((options & LookupOptions.NamespacesOrTypesOnly) != 0 && !(symbol is NamespaceOrTypeSymbol)) 1937internal void AddMemberLookupSymbolsInfo(LookupSymbolsInfo result, NamespaceOrTypeSymbol nsOrType, LookupOptions options, Binder originalBinder) 2026var targetSymbol = aliasSymbol.GetAliasTarget(basesBeingResolved: null);
Binder\Binder_Symbols.cs (21)
350private NamespaceOrTypeSymbol GetContainingNamespaceOrNonExtensionType(Symbol symbol) 588NamespaceOrTypeSymbol left = bindingResult is AliasSymbol alias ? alias.Target : (NamespaceOrTypeSymbol)bindingResult; 830NamespaceOrTypeSymbol qualifierOpt = null) 857NamespaceOrTypeSymbol qualifierOpt) 918var aliasTarget = ((AliasSymbol)bindingResult).GetAliasTarget(basesBeingResolved); 1107return NamespaceOrTypeOrAliasSymbolWithAnnotations.CreateUnannotated(symbol.IsNullableEnabled, (NamespaceOrTypeSymbol)UnwrapAlias(symbol.Symbol, out discarded, diagnostics, syntax, basesBeingResolved)); 1117return NamespaceOrTypeOrAliasSymbolWithAnnotations.CreateUnannotated(symbol.IsNullableEnabled, (NamespaceOrTypeSymbol)UnwrapAlias(symbol.Symbol, out alias, diagnostics, syntax, basesBeingResolved)); 1138var result = alias.GetAliasTarget(basesBeingResolved); 1162NamespaceOrTypeSymbol qualifierOpt) 1270NamespaceOrTypeSymbol qualifierOpt, 1330NamespaceOrTypeSymbol qualifierOpt, 1616var left = BindNamespaceOrTypeSymbol(leftName, diagnostics, basesBeingResolved, suppressUseSiteDiagnostics: false).NamespaceOrTypeSymbol; 1918NamespaceOrTypeSymbol qualifierOpt, 1947NamespaceOrTypeSymbol qualifierOpt, 2204if (first is NamespaceOrTypeSymbol && second is NamespaceOrTypeSymbol) 2346if ((symbols.Count > 1) || (symbols[0] is NamespaceOrTypeSymbol || symbols[0] is AliasSymbol) || 2553private CSDiagnosticInfo NotFound(SyntaxNode where, string simpleName, int arity, string whereText, BindingDiagnosticBag diagnostics, string aliasOpt, NamespaceOrTypeSymbol qualifierOpt, LookupOptions options) 2636protected virtual AssemblySymbol GetForwardedToAssemblyInUsingNamespaces(string metadataName, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 2708protected AssemblySymbol GetForwardedToAssembly(string name, int arity, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location)
Binder\BinderFactory.BinderFactoryVisitor.cs (8)
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); 903NamespaceOrTypeSymbol container; 1250SourceNamedTypeSymbol type = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((TypeDeclarationSyntax)memberSyntax); 1287SourceNamedTypeSymbol delegateType = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((DelegateDeclarationSyntax)memberSyntax); 1324SourceNamedTypeSymbol typeSymbol = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember(typeDeclSyntax); 1343SourceNamedTypeSymbol 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 129var 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)
1586var uniqueUsings = PooledHashSet<NamespaceOrTypeSymbol>.GetInstance(); 1943var mainTypeOrNamespace = globalNamespace.GetNamespaceOrTypeByQualifiedName(mainTypeName.Split('.')).OfMinimalArity(); 4859private readonly PooledDictionary<Declaration, NamespaceOrTypeSymbol> _cache; 4869_cache = PooledDictionary<Declaration, NamespaceOrTypeSymbol>.GetInstance(); 4903var container = GetSpineSymbol(spine); 4904var symbol = GetSymbol(container, current); 4915var container = GetSpineSymbol(spine); 4916var symbol = GetSymbol(container, current); 4956var container = GetSpineSymbol(spine); 4973protected NamespaceOrTypeSymbol? GetSpineSymbol(ArrayBuilder<MergedNamespaceOrTypeDeclaration> spine) 4980var symbol = GetCachedSymbol(spine[spine.Count - 1]); 4986NamespaceOrTypeSymbol? current = _compilation.GlobalNamespace; 4995private NamespaceOrTypeSymbol? GetCachedSymbol(MergedNamespaceOrTypeDeclaration declaration) 4996=> _cache.TryGetValue(declaration, out NamespaceOrTypeSymbol? symbol) 5000private NamespaceOrTypeSymbol? GetSymbol(NamespaceOrTypeSymbol? container, MergedNamespaceOrTypeDeclaration declaration) 5009AddCache(container.GetMembers(declaration.Name).OfType<NamespaceOrTypeSymbol>()); 5019private void AddCache(IEnumerable<NamespaceOrTypeSymbol> symbols) 5021foreach (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, 1695private void AppendSymbolsWithName(ArrayBuilder<ISymbol> results, string name, Binder binder, NamespaceOrTypeSymbol container, LookupOptions options, LookupSymbolsInfo info) 1733NamespaceOrTypeSymbol container,
Compilation\SyntaxTreeSemanticModel.cs (14)
1328NamespaceOrTypeSymbol container; 1397var container = GetDeclaredTypeMemberContainer(extensionDeclaration); 1427var container = GetDeclaredTypeMemberContainer(declarationSyntax); 1434private NamespaceOrTypeSymbol GetDeclaredNamespaceOrType(CSharpSyntaxNode declarationSyntax) 1617var container = GetDeclaredTypeMemberContainer(propertyOrEventDecl); 1633NamespaceOrTypeSymbol container; 1750private NamespaceSymbol GetDeclaredNamespace(NamespaceOrTypeSymbol container, TextSpan declarationSpan, NameSyntax name) 1760var left = GetDeclaredNamespace(container, declarationSpan, qn.Left) as NamespaceOrTypeSymbol; 1781private Symbol GetDeclaredMember(NamespaceOrTypeSymbol container, TextSpan declarationSpan, bool isKnownToBeANamespace, string name = null) 1864var container = GetDeclaredTypeMemberContainer(field); 2355private NamespaceOrTypeSymbol GetDeclaredTypeMemberContainer(CSharpSyntaxNode memberDeclaration) 2381var container = GetDeclaredNamespaceOrType(memberDeclaration.Parent); 2405var 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)
477internal static NamespaceOrTypeSymbol OfMinimalArity(this IEnumerable<NamespaceOrTypeSymbol> symbols) 479NamespaceOrTypeSymbol minAritySymbol = null; 481foreach (var symbol in symbols)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
36private readonly NamespaceOrTypeSymbol _container; 293NamespaceOrTypeSymbol container, 2806NamespaceOrTypeSymbol container, 2875NamespaceOrTypeSymbol container,
Symbols\MissingMetadataTypeSymbol.cs (1)
253foreach (NamespaceOrTypeSymbol symbol in container.GetMembers(namespaces[i]))
Symbols\NamedTypeSymbol.cs (1)
701/// <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 (2)
193private readonly NamespaceOrTypeSymbol _containingSymbol; 224NamespaceOrTypeSymbol containingSymbol,
Symbols\Source\SourceModuleSymbol.cs (2)
343var toVisit = ArrayBuilder<NamespaceOrTypeSymbol>.GetInstance(); 384if (member is not NamespaceOrTypeSymbol namespaceOrType)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
74internal 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]) 352case ({ } left1, NamespaceOrTypeSymbol right1) when isFileLocalTypeInSeparateFileFrom(left1, right1): 381static bool isFileLocalTypeInSeparateFileFrom(SourceMemberContainerTypeSymbol possibleFileLocalType, NamespaceOrTypeSymbol otherSymbol) 402private NamespaceOrTypeSymbol BuildSymbol(MergedNamespaceOrTypeDeclaration declaration, BindingDiagnosticBag diagnostics) 441foreach (var member in array)
Symbols\SymbolExtensions.cs (5)
129internal static NamespaceOrTypeSymbol? ContainingNamespaceOrType(this Symbol symbol) 139return (NamespaceOrTypeSymbol)containingSymbol; 395internal static NamespaceOrTypeSymbol? EnsureCSharpSymbolOrNull(this INamespaceOrTypeSymbol? symbol, string paramName) 397return (NamespaceOrTypeSymbol?)EnsureCSharpSymbolOrNull((ISymbol?)symbol, paramName); 598internal static INamespaceOrTypeSymbol? GetPublicSymbol(this NamespaceOrTypeSymbol? symbol)
Symbols\SymbolVisitor`2.cs (1)
74/// cref="NamespaceOrTypeSymbol.GetMembers()" />