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