2 overrides of ContainingNamespace
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
82public override NamespaceSymbol ContainingNamespace => _namespace;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
94public override NamespaceSymbol ContainingNamespace => _namespace;
49 references to ContainingNamespace
Microsoft.CodeAnalysis.CSharp (49)
Binder\Imports.cs (1)
133curr = curr.ContainingNamespace;
Binder\Semantics\Conversions\ConversionsBase.cs (2)
3242ContainingNamespace: { Name: "System", ContainingNamespace: { IsGlobalNamespace: true } },
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1507var arguments = (first.ContainingNamespace != second.ContainingNamespace) ?
Compilation\CSharpCompilation.cs (1)
1474var containingNamespace = namespaceSymbol.ContainingNamespace;
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (3)
230if ((object)symbol.ContainingNamespace != null && symbol.ContainingNamespace.Name.Length != 0) 232Visit(symbol.ContainingNamespace, builder);
Emitter\Model\MethodSymbolAdapter.cs (1)
552return AdaptedMethodSymbol.ContainingNamespace.GetCciAdapter();
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
815return AdaptedNamedTypeSymbol.ContainingNamespace.QualifiedName;
Emitter\Model\NamespaceSymbolAdapter.cs (1)
19Cci.INamespace Cci.INamespace.ContainingNamespace => AdaptedNamespaceSymbol.ContainingNamespace?.GetCciAdapter();
Symbols\AssemblySymbol.cs (1)
146NamespaceSymbol container = namespaceSymbol.ContainingNamespace;
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
373return ((PENamespaceSymbol)ContainingNamespace).ContainingPEModule;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2757var nestedType = Create(this.ContainingPEModule, (PENamespaceSymbol)this.ContainingNamespace, _handle, null);
Symbols\Metadata\PE\PENamespaceSymbol.cs (2)
238var parent = ContainingNamespace; 243parent = parent.ContainingNamespace;
Symbols\ModuleSymbol.cs (2)
383if (namespaceSymbol.IsGlobalNamespace || (object)namespaceSymbol.ContainingNamespace == null) 389var cns = GetModuleNamespace(namespaceSymbol.ContainingNamespace);
Symbols\NamedTypeSymbol.cs (3)
1635ContainingNamespace.ContainingNamespace?.IsGlobalNamespace == true && 1637ContainingNamespace.Name == MetadataHelpers.SystemString)
Symbols\NamespaceSymbol.cs (1)
51return (object)ContainingNamespace == null;
Symbols\PublicModel\Symbol.cs (1)
209INamespaceSymbol ISymbol.ContainingNamespace => UnderlyingSymbol.ContainingNamespace.GetPublicSymbol();
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
430string namespaceName = type.ContainingNamespace.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat); 467string namespaceName = type.ContainingNamespace.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat);
Symbols\Source\SourceAssemblySymbol.cs (2)
1092if (x.Arity != 0 || !x.ContainingNamespace.IsGlobalNamespace || x.Name != "<Module>") 1096y.ContainingNamespace);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (4)
1117for (var containingNamespace = @this.ContainingNamespace; containingNamespace?.IsGlobalNamespace == false; containingNamespace = containingNamespace.ContainingNamespace) 1331for (var containingNamespace = ContainingNamespace; containingNamespace?.IsGlobalNamespace == false; containingNamespace = containingNamespace.ContainingNamespace)
Symbols\Symbol.cs (1)
319INamespaceSymbolInternal ISymbolInternal.ContainingNamespace => this.ContainingNamespace;
Symbols\TypeSymbolExtensions.cs (16)
1374ContainingNamespace: { Name: nameof(System), ContainingNamespace.IsGlobalNamespace: true }, 1387ContainingNamespace: { Name: nameof(System), ContainingNamespace.IsGlobalNamespace: true }, 1395ContainingNamespace: { Name: "System", ContainingNamespace: { IsGlobalNamespace: true } }, 1406ContainingNamespace: { Name: "System", ContainingNamespace: { IsGlobalNamespace: true } }, 1417ContainingNamespace: { Name: "System", ContainingNamespace: { IsGlobalNamespace: true } }, 1800var container = @namespace.ContainingNamespace; 2182var innerNamespace = typeSymbol.ContainingNamespace; 2187midNamespace = innerNamespace.ContainingNamespace; 2191midNamespace = typeSymbol.ContainingNamespace; 2199var outerNamespace = midNamespace.ContainingNamespace; 2205var globalNamespace = outerNamespace.ContainingNamespace;