4 overrides of GlobalNamespace
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
197
public override NamespaceSymbol
GlobalNamespace
Symbols\MissingModuleSymbol.cs (1)
97
public override NamespaceSymbol
GlobalNamespace
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
134
public override NamespaceSymbol
GlobalNamespace
Symbols\Source\SourceModuleSymbol.cs (1)
192
public override NamespaceSymbol
GlobalNamespace
27 references to GlobalNamespace
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Lookup.cs (1)
283
submissionImports = ((SourceNamespaceSymbol)Compilation.SourceModule.
GlobalNamespace
).GetImports(declarationSyntax, basesBeingResolved);
Binder\BinderFactory.BinderFactoryVisitor.cs (3)
984
result = WithUsingNamespacesAndTypesBinder.Create((SourceNamespaceSymbol)compilation.SourceModule.
GlobalNamespace
, compilationUnit, result,
1003
result = AddInImportsBinders((SourceNamespaceSymbol)compilation.SourceModule.
GlobalNamespace
, compilationUnit, result, inUsing);
1017
result = AddInImportsBinders((SourceNamespaceSymbol)compilation.SourceModule.
GlobalNamespace
, compilationUnit, result, inUsing);
Binder\InSubmissionClassBinder.cs (2)
60
internal override ImmutableArray<AliasAndExternAliasDirective> ExternAliases => ((SourceNamespaceSymbol)Compilation.SourceModule.
GlobalNamespace
).GetExternAliases(_declarationSyntax);
62
internal override ImmutableArray<AliasAndUsingDirective> UsingAliases => ((SourceNamespaceSymbol)Compilation.SourceModule.
GlobalNamespace
).GetUsingAliases(_declarationSyntax, basesBeingResolved: null);
Binder\WithExternAndUsingAliasesBinder.cs (1)
178
foreach (var declaration in ((SourceNamespaceSymbol)Compilation.SourceModule.
GlobalNamespace
).MergedDeclaration.Declarations)
Compilation\CSharpCompilation.cs (3)
1627
return ((SourceNamespaceSymbol)SourceModule.
GlobalNamespace
).GetImports((CSharpSyntaxNode)tree.GetRoot(), basesBeingResolved: null);
1930
NamespaceSymbol globalNamespace = this.SourceModule.
GlobalNamespace
;
3099
foreach (var singleDeclaration in ((SourceNamespaceSymbol)SourceModule.
GlobalNamespace
).MergedDeclaration.Declarations)
Compiler\MethodCompiler.cs (1)
159
methodCompiler.CompileNamespace(compilation.SourceModule.
GlobalNamespace
);
Compiler\SynthesizedMetadataCompiler.cs (1)
49
compiler.Visit(compilation.SourceModule.
GlobalNamespace
);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
261
return ((ModuleSymbol)otherContainer).
GlobalNamespace
;
Emitter\Model\PEModuleBuilder.cs (1)
641
GetExportedTypes(modules[i].
GlobalNamespace
, -1, builder);
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
59
get { return this.Manager.Compilation.SourceModule.
GlobalNamespace
; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
137
get { return this.Manager.Compilation.SourceModule.
GlobalNamespace
; }
Symbols\MissingMetadataTypeSymbol.cs (1)
242
NamespaceSymbol container = _containingModule.
GlobalNamespace
;
Symbols\ModuleSymbol.cs (2)
354
return this.
GlobalNamespace
;
385
return this.
GlobalNamespace
;
Symbols\NonMissingAssemblySymbol.cs (1)
62
IEnumerable<NamespaceSymbol> allGlobalNamespaces = from m in Modules select m.
GlobalNamespace
;
Symbols\NonMissingModuleSymbol.cs (1)
191
NamespaceSymbol? scope = this.
GlobalNamespace
.LookupNestedNamespace(emittedName.NamespaceSegmentsMemory);
Symbols\PublicModel\ModuleSymbol.cs (1)
28
return _underlying.
GlobalNamespace
.GetPublicSymbol();
Symbols\Source\SourceAssemblySymbol.cs (1)
2061
if (ContainsExtensionMethods(module.
GlobalNamespace
))
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
821
public override Symbol? ContainingSymbol => _containingModule.
GlobalNamespace
;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
69
public override Symbol? ContainingSymbol => _containingModule.
GlobalNamespace
;
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (2)
115
return compilation.SourceModule.
GlobalNamespace
.GetTypeMembers(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName).OfType<SourceNamedTypeSymbol>().SingleOrDefault(s => s.IsSimpleProgram);
224
var declaringSymbol = (SourceNamespaceSymbol)compilation.SourceModule.
GlobalNamespace
;