6 types derived from NamespaceSymbol
Microsoft.CodeAnalysis.CSharp (6)
Symbols\MergedNamespaceSymbol.cs (1)
34internal sealed class MergedNamespaceSymbol : NamespaceSymbol
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
24: NamespaceSymbol
Symbols\MissingNamespaceSymbol.cs (1)
18internal class MissingNamespaceSymbol : NamespaceSymbol
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
27: NamespaceSymbol
Symbols\Source\SourceNamespaceSymbol.cs (1)
20internal sealed partial class SourceNamespaceSymbol : NamespaceSymbol
Symbols\SynthesizedNamespaceSymbol.cs (1)
19internal sealed class SynthesizedNamespaceSymbol : NamespaceSymbol
306 references to NamespaceSymbol
Microsoft.CodeAnalysis.CSharp (263)
Binder\Binder_Expressions.cs (6)
2184return new BoundNamespaceExpression(node, (NamespaceSymbol)symbol, hasErrors: isError); 2192NamespaceSymbol namespaceSymbol => new BoundNamespaceExpression(node, namespaceSymbol, alias, hasErrors: isError), 2444var namespaceSymbol = symbol as NamespaceSymbol; 7750NamespaceSymbol ns, 7781return new BoundNamespaceExpression(node, (NamespaceSymbol)sym);
Binder\Binder_Lookup.cs (5)
171LookupMembersInNamespace(result, (NamespaceSymbol)nsOrType, name, arity, options, originalBinder, diagnose, ref useSiteInfo); 443private static void LookupMembersInNamespace(LookupResult result, NamespaceSymbol ns, string name, int arity, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 665static bool isRoot(Symbol symbol) => symbol is null || symbol is NamespaceSymbol { IsGlobalNamespace: true }; 1855AddMemberLookupSymbolsInfoInNamespace(result, (NamespaceSymbol)nsOrType, options, originalBinder); 1948private static void AddMemberLookupSymbolsInfoInNamespace(LookupSymbolsInfo result, NamespaceSymbol ns, LookupOptions options, Binder originalBinder)
Binder\Binder_Patterns.cs (1)
953(declContainer.ContainingSymbol as NamespaceSymbol)?.IsGlobalNamespace == true;
Binder\Binder_Symbols.cs (7)
274Debug.Assert(UnwrapAliasNoDiagnostics(symbol) is NamespaceSymbol); 2145foreach (NamespaceSymbol ns in ((NamespaceSymbol)second).ConstituentNamespaces) 2358return symbol.ContainingAssembly ?? ((NamespaceSymbol)symbol).ConstituentNamespaces.First().ContainingAssembly; 2488foreach (var ns in ((NamespaceSymbol)symbol).ConstituentNamespaces) 2593if (aliasOpt != null && qualifierOpt.IsNamespace && ((NamespaceSymbol)qualifierOpt).IsGlobalNamespace)
Binder\BinderFactory.BinderFactoryVisitor.cs (5)
440Debug.Assert(containingSymbol is NamespaceSymbol); 447container = ((NamespaceSymbol)containingSymbol).ImplicitType; 916NamespaceSymbol ns = ((NamespaceSymbol)container).GetNestedNamespace(name); 1016var globalNamespace = compilation.GlobalNamespace;
Binder\BindingDiagnosticBag.cs (3)
118internal void AddAssembliesUsedByNamespaceReference(NamespaceSymbol ns) 127void addAssembliesUsedByNamespaceReferenceImpl(NamespaceSymbol ns) 132foreach (var constituent in ns.ConstituentNamespaces)
Binder\ImportChain.cs (5)
82var ns = (NamespaceSymbol)namespaceOrType; 112var ns = (NamespaceSymbol)target; 137private static Cci.IAssemblyReference TryGetAssemblyScope(NamespaceSymbol @namespace, Emit.PEModuleBuilder moduleBuilder, DiagnosticBag diagnostics)
Binder\Imports.cs (9)
98var expandedGlobalNamespace = newSubmission.GlobalNamespace; 109var expandedNamespace = ExpandPreviousSubmissionNamespace((NamespaceSymbol)previousTarget, expandedGlobalNamespace); 120internal static NamespaceSymbol ExpandPreviousSubmissionNamespace(NamespaceSymbol originalNamespace, NamespaceSymbol expandedGlobalNamespace) 129var curr = originalNamespace; 136var expandedNamespace = expandedGlobalNamespace; 142expandedNamespace = expandedNamespace.GetMembers(nameParts[i]).OfType<NamespaceSymbol>().Single();
Binder\InContainerBinder.cs (1)
84((NamespaceSymbol)_container).GetExtensionMethods(methods, name, arity, options);
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
97((NamespaceSymbol)nsOrType.NamespaceOrType).GetExtensionMethods(methods, name, arity, options);
BoundTree\BoundInlineArrayAccess.cs (4)
22ContainingSymbol: NamespaceSymbol 25ContainingSymbol: NamespaceSymbol { IsGlobalNamespace: true } 52ContainingSymbol: NamespaceSymbol 55ContainingSymbol: NamespaceSymbol { IsGlobalNamespace: true }
BoundTree\Constructors.cs (3)
572public BoundNamespaceExpression(SyntaxNode syntax, NamespaceSymbol namespaceSymbol, bool hasErrors = false) 577public BoundNamespaceExpression(SyntaxNode syntax, NamespaceSymbol namespaceSymbol) 582public BoundNamespaceExpression Update(NamespaceSymbol namespaceSymbol)
Compilation\CSharpCompilation.cs (22)
99private NamespaceSymbol? _lazyGlobalNamespace; 1409internal new NamespaceSymbol GlobalNamespace 1422var result = MergedNamespaceSymbol.Create( 1442internal new NamespaceSymbol? GetCompilationNamespace(INamespaceSymbol namespaceSymbol) 1457var current = GetCompilationNamespace(containingNamespace); 1466internal NamespaceSymbol? GetCompilationNamespace(NamespaceSymbol namespaceSymbol) 1474var containingNamespace = namespaceSymbol.ContainingNamespace; 1480var current = GetCompilationNamespace(containingNamespace); 1489private ConcurrentDictionary<string, NamespaceSymbol>? _externAliasTargets; 1491internal bool GetExternAliasTarget(string aliasName, out NamespaceSymbol @namespace) 1495Interlocked.CompareExchange(ref _externAliasTargets, new ConcurrentDictionary<string, NamespaceSymbol>(), null); 1497else if (_externAliasTargets.TryGetValue(aliasName, out var cached)) 1503ArrayBuilder<NamespaceSymbol>? builder = null; 1509builder = builder ?? ArrayBuilder<NamespaceSymbol>.GetInstance(); 1930NamespaceSymbol globalNamespace = this.SourceModule.GlobalNamespace; 2648PooledHashSet<NamespaceSymbol>? externAliasesToCheck = null; 2652externAliasesToCheck = PooledHashSet<NamespaceSymbol>.GetInstance(); 2686if (node is object && GetExternAliasTarget(node.Identifier.ValueText, out NamespaceSymbol target)) 3571public bool CheckDuplicateFilePathsAndFree(ImmutableArray<SyntaxTree> syntaxTrees, NamespaceSymbol globalNamespace) 3591public override void VisitNamespace(NamespaceSymbol symbol) 3597case NamespaceSymbol @namespace:
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (1)
170diagnostics.AddAssembliesUsedByNamespaceReference((NamespaceSymbol)target);
Compilation\SyntaxTreeSemanticModel.cs (10)
1321private NamespaceSymbol GetDeclaredNamespace(BaseNamespaceDeclarationSyntax declarationSyntax) 1338var symbol = GetDeclaredNamespace(container, declarationSyntax.Span, declarationSyntax.Name); 1720private NamespaceSymbol GetDeclaredNamespace(NamespaceOrTypeSymbol container, TextSpan declarationSpan, NameSyntax name) 1726return (NamespaceSymbol)GetDeclaredMember(container, declarationSpan, isKnownToBeANamespace: true, ((SimpleNameSyntax)name).Identifier.ValueText); 1748/// <see cref="NamespaceSymbol"/> (e.g. when the caller is <see cref="GetDeclaredNamespace(BaseNamespaceDeclarationSyntax)"/>; 1750/// <see cref="NamespaceSymbol"/>.</param> 1764var namespaces = collection.WhereAsArray(symbol => symbol is NamespaceSymbol); 1767Debug.Assert(namespaces is [NamespaceSymbol], "Namespace declarations of the same name are expected to appear as a single merged symbol."); 1769if (name != null && namespaces is [NamespaceSymbol knownNamespace]) 2342return ((NamespaceSymbol)container).ImplicitType;
Compiler\ClsComplianceChecker.cs (3)
188public override void VisitNamespace(NamespaceSymbol symbol) 210private void VisitNamespaceMembersAsTasks(NamespaceSymbol symbol) 228private void VisitNamespaceMembers(NamespaceSymbol symbol)
Compiler\DocumentationCommentCompiler.cs (2)
174public override void VisitNamespace(NamespaceSymbol symbol) 1093if (symbol is NamespaceSymbol ns)
Compiler\MethodCompiler.cs (3)
364public override object VisitNamespace(NamespaceSymbol symbol, TypeCompilationState arg) 387private Task CompileNamespaceAsAsync(NamespaceSymbol symbol) 402private void CompileNamespace(NamespaceSymbol symbol)
Compiler\SynthesizedMetadataCompiler.cs (1)
52public override void VisitNamespace(NamespaceSymbol symbol)
DocumentationComments\DocumentationCommentIDVisitor.cs (1)
26public override object VisitNamespace(NamespaceSymbol symbol, StringBuilder builder)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
228public override object VisitNamespace(NamespaceSymbol symbol, StringBuilder builder)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (5)
68if (@namespace.GetInternalSymbol() is NamespaceSymbol symbol) 246public override Symbol? VisitNamespace(NamespaceSymbol @namespace) 646private bool AreNamespacesEqual(NamespaceSymbol @namespace, NamespaceSymbol other) 792members.AddRange(((NamespaceSymbol)symbol).GetMembers());
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
331var containingNamespace = GetOrSynthesizeNamespace(SynthesizedHotReloadExceptionSymbol.NamespaceName);
Emitter\Model\NamespaceSymbolAdapter.cs (2)
54internal NamespaceSymbolAdapter(NamespaceSymbol underlyingNamespaceSymbol) 60internal NamespaceSymbol AdaptedNamespaceSymbol { get; }
Emitter\Model\PEAssemblyBuilder.cs (13)
384var createParameterlessEmbeddedAttributeSymbol = new Func<string, NamespaceSymbol, BindingDiagnosticBag, SynthesizedEmbeddedAttributeSymbol>(CreateParameterlessEmbeddedAttributeSymbol); 493private SynthesizedEmbeddedAttributeSymbol CreateParameterlessEmbeddedAttributeSymbol(string name, NamespaceSymbol containingNamespace, BindingDiagnosticBag diagnostics) 500private SynthesizedEmbeddedNullableAttributeSymbol CreateNullableAttributeSymbol(string name, NamespaceSymbol containingNamespace, BindingDiagnosticBag diagnostics) 508private SynthesizedEmbeddedNullableContextAttributeSymbol CreateNullableContextAttributeSymbol(string name, NamespaceSymbol containingNamespace, BindingDiagnosticBag diagnostics) 516private SynthesizedEmbeddedNullablePublicOnlyAttributeSymbol CreateNullablePublicOnlyAttributeSymbol(string name, NamespaceSymbol containingNamespace, BindingDiagnosticBag diagnostics) 524private SynthesizedEmbeddedNativeIntegerAttributeSymbol CreateNativeIntegerAttributeSymbol(string name, NamespaceSymbol containingNamespace, BindingDiagnosticBag diagnostics) 532private SynthesizedEmbeddedScopedRefAttributeSymbol CreateScopedRefAttributeSymbol(string name, NamespaceSymbol containingNamespace, BindingDiagnosticBag diagnostics) 539private SynthesizedEmbeddedRefSafetyRulesAttributeSymbol CreateRefSafetyRulesAttributeSymbol(string name, NamespaceSymbol containingNamespace, BindingDiagnosticBag diagnostics) 551Func<string, NamespaceSymbol, BindingDiagnosticBag, T> factory) 558var containingNamespace = GetOrSynthesizeNamespace(description.Namespace); 589protected NamespaceSymbol GetOrSynthesizeNamespace(string namespaceFullName) 595var subnamespace = (NamespaceSymbol)result.GetMembers(partName).FirstOrDefault(m => m.Kind == SymbolKind.Namespace);
Emitter\Model\PEModuleBuilder.cs (3)
561var namespacesToProcess = new Stack<NamespaceSymbol>(); 566var ns = namespacesToProcess.Pop(); 571namespacesToProcess.Push((NamespaceSymbol)member);
Generated\BoundNodes.xml.Generated.cs (4)
1142public BoundNamespaceExpression(SyntaxNode syntax, NamespaceSymbol namespaceSymbol, AliasSymbol? aliasOpt, bool hasErrors) 1152public BoundNamespaceExpression(SyntaxNode syntax, NamespaceSymbol namespaceSymbol, AliasSymbol? aliasOpt) 1163public NamespaceSymbol NamespaceSymbol { get; } 1169public BoundNamespaceExpression Update(NamespaceSymbol namespaceSymbol, AliasSymbol? aliasOpt)
Symbols\AliasSymbol.cs (6)
68internal static AliasSymbol CreateGlobalNamespaceAlias(NamespaceSymbol globalNamespace) 88var expandedGlobalNamespace = compilation.GlobalNamespace; 89var expandedNamespace = Imports.ExpandPreviousSubmissionNamespace((NamespaceSymbol)previousTarget, expandedGlobalNamespace); 356private NamespaceSymbol ResolveExternAliasTarget(BindingDiagnosticBag diagnostics) 358NamespaceSymbol? target;
Symbols\AssemblySymbol.cs (5)
131public abstract NamespaceSymbol GlobalNamespace 139internal NamespaceSymbol GetAssemblyNamespace(NamespaceSymbol namespaceSymbol) 146NamespaceSymbol container = namespaceSymbol.ContainingNamespace; 159NamespaceSymbol assemblyContainer = GetAssemblyNamespace(container);
Symbols\MergedNamespaceSymbol.cs (19)
37private readonly ImmutableArray<NamespaceSymbol> _namespacesToMerge; 38private readonly NamespaceSymbol _containingNamespace; 65internal static NamespaceSymbol Create( 67NamespaceSymbol containingNamespace, 68ImmutableArray<NamespaceSymbol> namespacesToMerge, 91private MergedNamespaceSymbol(NamespaceExtent extent, NamespaceSymbol containingNamespace, ImmutableArray<NamespaceSymbol> namespacesToMerge, string nameOpt) 101foreach (NamespaceSymbol ns in namespacesToMerge) 108internal NamespaceSymbol GetConstituentForCompilation(CSharpCompilation compilation) 113foreach (var n in _namespacesToMerge) 124foreach (var part in _namespacesToMerge) 137ArrayBuilder<NamespaceSymbol> namespaceSymbols = null; 141foreach (NamespaceSymbol namespaceSymbol in _namespacesToMerge) 147namespaceSymbols = namespaceSymbols ?? ArrayBuilder<NamespaceSymbol>.GetInstance(); 148namespaceSymbols.Add((NamespaceSymbol)childSymbol); 174foreach (var ns in _namespacesToMerge) 181foreach (var ns in _namespacesToMerge) 208public override ImmutableArray<NamespaceSymbol> ConstituentNamespaces 297foreach (NamespaceSymbol namespaceSymbol in _namespacesToMerge)
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
197public override NamespaceSymbol GlobalNamespace
Symbols\Metadata\PE\PENamespaceSymbol.cs (2)
108internal override NamespaceSymbol GetNestedNamespace(ReadOnlyMemory<char> name) 238var parent = ContainingNamespace;
Symbols\MissingAssemblySymbol.cs (1)
144public sealed override NamespaceSymbol GlobalNamespace
Symbols\MissingMetadataTypeSymbol.cs (5)
146private NamespaceSymbol? _lazyContainingNamespace; 191private TopLevel(ModuleSymbol module, string @namespace, string name, int arity, bool mangleName, bool isNativeInt, DiagnosticInfo? errorInfo, NamespaceSymbol? containingNamespace, int typeId, TupleExtraData? tupleData) 242NamespaceSymbol container = _containingModule.GlobalNamespace; 251NamespaceSymbol? newContainer = null; 257newContainer = (NamespaceSymbol)symbol;
Symbols\MissingModuleSymbol.cs (1)
97public override NamespaceSymbol GlobalNamespace
Symbols\MissingNamespaceSymbol.cs (3)
15/// A <see cref="MissingNamespaceSymbol"/> is a special kind of <see cref="NamespaceSymbol"/> that represents 31public MissingNamespaceSymbol(NamespaceSymbol containingNamespace, string name) 73return ((NamespaceSymbol)_containingSymbol).Extent;
Symbols\ModuleSymbol.cs (7)
33public abstract NamespaceSymbol GlobalNamespace { get; } 335public NamespaceSymbol GetModuleNamespace(INamespaceSymbol namespaceSymbol) 344var moduleNs = (namespaceSymbol as PublicModel.NamespaceSymbol)?.UnderlyingNamespaceSymbol; 358var cns = GetModuleNamespace(namespaceSymbol.ContainingNamespace); 370public NamespaceSymbol GetModuleNamespace(NamespaceSymbol namespaceSymbol) 389var cns = GetModuleNamespace(namespaceSymbol.ContainingNamespace);
Symbols\NamespaceOrTypeSymbol.cs (1)
260Debug.Assert(scope is NamespaceSymbol or NamedTypeSymbol);
Symbols\NamespaceSymbol.cs (10)
38public IEnumerable<NamespaceSymbol> GetNamespaceMembers() 40return this.GetMembers().OfType<NamespaceSymbol>(); 82public virtual ImmutableArray<NamespaceSymbol> ConstituentNamespaces 249internal NamespaceSymbol LookupNestedNamespace(ImmutableArray<ReadOnlyMemory<char>> names) 251NamespaceSymbol scope = this; 262internal NamespaceSymbol GetNestedNamespace(string name) 265internal virtual NamespaceSymbol GetNestedNamespace(ReadOnlyMemory<char> name) 271return (NamespaceSymbol)sym; 283internal NamespaceSymbol GetNestedNamespace(NameSyntax name) 293var leftNs = this.GetNestedNamespace(qn.Left);
Symbols\NonMissingAssemblySymbol.cs (4)
35private NamespaceSymbol? _globalNamespace; 53public sealed override NamespaceSymbol GlobalNamespace 62IEnumerable<NamespaceSymbol> allGlobalNamespaces = from m in Modules select m.GlobalNamespace; 63var result = MergedNamespaceSymbol.Create(new NamespaceExtent(this),
Symbols\NonMissingModuleSymbol.cs (1)
191NamespaceSymbol? scope = this.GlobalNamespace.LookupNestedNamespace(emittedName.NamespaceSegmentsMemory);
Symbols\PublicModel\NamespaceSymbol.cs (4)
15private readonly Symbols.NamespaceSymbol _underlying; 17public NamespaceSymbol(Symbols.NamespaceSymbol underlying) 25internal Symbols.NamespaceSymbol UnderlyingNamespaceSymbol => _underlying; 59foreach (var n in _underlying.GetNamespaceMembers())
Symbols\ReducedExtensionMethodSymbol.cs (1)
134var errorNamespace = containingAssembly.GlobalNamespace;
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
134public override NamespaceSymbol GlobalNamespace
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (3)
37private readonly NamespaceSymbol _underlyingNamespace; 39public RetargetingNamespaceSymbol(RetargetingModuleSymbol retargetingModule, NamespaceSymbol underlyingNamespace) 57public NamespaceSymbol UnderlyingNamespace
Symbols\Retargeting\RetargetingSymbolTranslator.cs (5)
51return new RetargetingNamespaceSymbol(this, (NamespaceSymbol)symbol); 200public NamespaceSymbol Retarget(NamespaceSymbol ns) 202return (NamespaceSymbol)this.SymbolMap.GetOrAdd(ns, _retargetingModule._createRetargetingNamespace); 1324public override Symbol VisitNamespace(NamespaceSymbol symbol, RetargetOptions options)
Symbols\Source\SourceAssemblySymbol.cs (6)
1053private void ReportNameCollisionDiagnosticsForAddedModules(NamespaceSymbol ns, BindingDiagnosticBag diagnostics) 1062ImmutableArray<NamespaceSymbol> constituent = mergedNs.ConstituentNamespaces; 1068foreach (var moduleNs in constituent) 1115ReportNameCollisionDiagnosticsForAddedModules((NamespaceSymbol)member, diagnostics); 2069private static bool ContainsExtensionMethods(NamespaceSymbol ns) 2076if (ContainsExtensionMethods((NamespaceSymbol)member))
Symbols\Source\SourceMemberContainerSymbol.cs (2)
231Debug.Assert(containingSymbol is NamespaceSymbol { IsGlobalNamespace: true } || !declaration.Declarations.Any(static d => d.IsSimpleProgram)); 3311if (this.ContainingSymbol is not NamespaceSymbol { IsGlobalNamespace: true }
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1117for (var containingNamespace = @this.ContainingNamespace; containingNamespace?.IsGlobalNamespace == false; containingNamespace = containingNamespace.ContainingNamespace) 1331for (var containingNamespace = ContainingNamespace; containingNamespace?.IsGlobalNamespace == false; containingNamespace = containingNamespace.ContainingNamespace)
Symbols\Source\SourceModuleSymbol.cs (8)
45private NamespaceSymbol _globalNamespace; 165private static bool NamespaceContainsExplicitDefinitionOfNoPiaLocalTypes(NamespaceSymbol ns) 172if (NamespaceContainsExplicitDefinitionOfNoPiaLocalTypes((NamespaceSymbol)s)) 192public override NamespaceSymbol GlobalNamespace 357var cursor = GlobalNamespace; 360cursor = (NamespaceSymbol?)cursor.GetNestedNamespace(namespacePart); 604static bool namespaceIncludesTypeDeclarations(NamespaceSymbol ns) 611if (namespaceIncludesTypeDeclarations((NamespaceSymbol)member))
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (3)
1036var target = (NamespaceSymbol)alias.Alias.GetAliasTarget(null); 1076diagnostics.AddAssembliesUsedByNamespaceReference((NamespaceSymbol)target);
Symbols\Source\SourceNamespaceSymbol.cs (3)
283ImmutableArrayExtensions.CreateNameToMembersMap<ReadOnlyMemory<char>, NamespaceOrTypeSymbol, NamedTypeSymbol, NamespaceSymbol>(builder, result); 291private static void CheckMembers(NamespaceSymbol @namespace, Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> result, BindingDiagnosticBag diagnostics) 321foreach (NamespaceSymbol constituent in mergedAssemblyNamespace.ConstituentNamespaces)
Symbols\Symbol.cs (3)
145public virtual NamespaceSymbol ContainingNamespace 151var ns = container as NamespaceSymbol;
Symbols\SymbolExtensions.cs (4)
414internal static NamespaceSymbol? EnsureCSharpSymbolOrNull(this INamespaceSymbol? symbol, string paramName) 416return (NamespaceSymbol?)EnsureCSharpSymbolOrNull((ISymbol?)symbol, paramName); 587internal static INamespaceSymbol? GetPublicSymbol(this NamespaceSymbol? symbol) 759internal static ImmutableArray<INamespaceSymbol> GetPublicSymbols(this ImmutableArray<NamespaceSymbol> symbols)
Symbols\SymbolVisitor.cs (1)
85public virtual void VisitNamespace(NamespaceSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
85public virtual TResult VisitNamespace(NamespaceSymbol symbol)
Symbols\SymbolVisitor`2.cs (2)
72/// Called when visiting a <see cref="NamespaceSymbol" />; Should override this method if 82public virtual TResult VisitNamespace(NamespaceSymbol symbol, TArgument argument)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (4)
32private readonly NamespaceSymbol _namespace; 37NamespaceSymbol containingNamespace, 82public override NamespaceSymbol ContainingNamespace => _namespace; 236NamespaceSymbol containingNamespace,
Symbols\Synthesized\SynthesizedEmbeddedLifetimeAnnotationAttributeSymbol.cs (1)
16NamespaceSymbol containingNamespace,
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (1)
24NamespaceSymbol containingNamespace,
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (1)
26NamespaceSymbol containingNamespace,
Symbols\Synthesized\SynthesizedEmbeddedNullableContextAttributeSymbol.cs (1)
23NamespaceSymbol containingNamespace,
Symbols\Synthesized\SynthesizedEmbeddedNullablePublicOnlyAttributeSymbol.cs (1)
23NamespaceSymbol containingNamespace,
Symbols\Synthesized\SynthesizedEmbeddedRefSafetyRulesAttributeSymbol.cs (1)
21NamespaceSymbol containingNamespace,
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (3)
26private readonly NamespaceSymbol _namespace; 32NamespaceSymbol containingNamespace, 94public override NamespaceSymbol ContainingNamespace => _namespace;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (2)
21private readonly NamespaceSymbol _globalNamespace; 24public SynthesizedPrivateImplementationDetailsType(PrivateImplementationDetails privateImplementationDetails, NamespaceSymbol globalNamespace, NamedTypeSymbol objectType)
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
223var globalNamespace = compilation.GlobalNamespace;
Symbols\SynthesizedNamespaceSymbol.cs (2)
22private readonly NamespaceSymbol _containingSymbol; 24public SynthesizedNamespaceSymbol(NamespaceSymbol containingNamespace, string name)
Symbols\TypeSymbolExtensions.cs (8)
1784var @namespace = (NamespaceSymbol)container; 1793private static bool HasNamespaceName(NamespaceSymbol @namespace, string namespaceName, StringComparison comparison, int length) 1800var container = @namespace.ContainingNamespace; 2178NamespaceSymbol? midNamespace; 2182var innerNamespace = typeSymbol.ContainingNamespace; 2199var outerNamespace = midNamespace.ContainingNamespace; 2205var globalNamespace = outerNamespace.ContainingNamespace;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenOverridingAndHiding.cs (3)
3774var globalNamespace = module.GlobalNamespace; 3847var globalNamespace = module.GlobalNamespace; 4097var globalNamespace = module.GlobalNamespace;
CodeGen\DestructorTests.cs (1)
584var globalNamespace = module.GlobalNamespace;
Emit\EmitMetadataTests.cs (3)
2022var global = module.GlobalNamespace; 2067var global = module.GlobalNamespace; 2126var global = module.GlobalNamespace;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (1)
2130var globalNs = module.GlobalNamespace;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Attributes\AttributeTests_Conditional.cs (1)
624var globalNamespace = module.GlobalNamespace;
Attributes\AttributeTests_Dynamic.cs (1)
126var globalNamespace = module.GlobalNamespace;
Attributes\AttributeTests_Nullable.cs (6)
3761var globalNamespace = module.GlobalNamespace; 3831var globalNamespace = module.GlobalNamespace; 3872var globalNamespace = module.GlobalNamespace; 3972var globalNamespace = module.GlobalNamespace; 4041var globalNamespace = module.GlobalNamespace; 4120var globalNamespace = module.GlobalNamespace;
Attributes\AttributeTests_Tuples.cs (1)
316var globalNs = module.GlobalNamespace;
Attributes\AttributeTests_WellKnownAttributes.cs (2)
261var globalNS = m.GlobalNamespace; 401var globalNS = m.GlobalNamespace;
Semantics\CollectionExpressionTests.cs (1)
13969var globalNamespace = module.GlobalNamespace;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (23)
SymbolDisplay\SymbolDisplayTests.cs (4)
3301var globalNamespace = assemblies[0].GlobalNamespace; 3430var globalNamespace = assemblies[0].GlobalNamespace; 3491var globalNamespace = assemblies[0].GlobalNamespace; 3552var globalNamespace = assemblies[0].GlobalNamespace;
Symbols\AnonymousTypesSemanticsTests.cs (1)
1081var ns = module.GlobalNamespace;
Symbols\IndexerTests.cs (3)
1142var globalNamespace = module.GlobalNamespace; 1227var globalNamespace = module.GlobalNamespace; 1239var globalNamespace = module.GlobalNamespace;
Symbols\Metadata\PE\LoadCustomModifiers.cs (6)
127var globalNamespace = assemblies[0].GlobalNamespace; 157var globalNamespace = assemblies[0].GlobalNamespace; 184var globalNamespace = assemblies[0].GlobalNamespace; 215var globalNamespace = assemblies[0].GlobalNamespace; 234var globalNamespace = assemblies[0].GlobalNamespace; 253var globalNamespace = assemblies[0].GlobalNamespace;
Symbols\Metadata\PE\LoadingEvents.cs (1)
380var globalNamespace = assembly.GlobalNamespace;
Symbols\Metadata\PE\LoadingMethods.cs (6)
386var globalNamespace = assembly.GlobalNamespace; 410var globalNamespace = assembly.GlobalNamespace; 514var globalNamespace = assembly.GlobalNamespace; 542var globalNamespace = assembly.GlobalNamespace; 609var globalNamespace = assembly.GlobalNamespace; 633var globalNamespace = assembly.GlobalNamespace;
Symbols\Metadata\PE\LoadingProperties.cs (2)
28var globalNamespace = assembly.GlobalNamespace; 295var globalNamespace = assembly.GlobalNamespace;