2 implementations of IAssemblySymbol_GlobalNamespace
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\AssemblySymbol.cs (1)
21INamespaceSymbol IAssemblySymbol.GlobalNamespace
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
733Private ReadOnly Property IAssemblySymbol_GlobalNamespace As INamespaceSymbol Implements IAssemblySymbol.GlobalNamespace
60 references to IAssemblySymbol_GlobalNamespace
Microsoft.AspNetCore.Analyzers (1)
ConfigureMethodVisitor.cs (1)
29Visit(symbol.GlobalNamespace);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
96result.AddIfNotNull(assembly.GlobalNamespace);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenTupleTest.cs (5)
6232ns = comp.CreateErrorNamespaceSymbol(comp.Assembly.GlobalNamespace, "a"); 6236Assert.Same(comp.Assembly.GlobalNamespace, ns.ContainingSymbol); 6237Assert.Same(comp.Assembly.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly); 6238Assert.Same(comp.Assembly.GlobalNamespace.ContainingModule, ns.ContainingModule); 6258vt2 = comp.CreateErrorTypeSymbol(comp.CreateErrorNamespaceSymbol(comp.Assembly.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Compilation\GetSemanticInfoTests.cs (1)
4056comp.Assembly.GlobalNamespace.GetMember<INamedTypeSymbol>("Program").GetMembers("Any").
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
3242Assert.Equal(compilation.Assembly.GlobalNamespace, info.Type.ContainingSymbol); //error type resides in global namespace
DeclarationTests.cs (2)
292var type = compilation.Assembly.GlobalNamespace.GetTypeMembers().First(); 339var type = compilation.Assembly.GlobalNamespace.GetTypeMembers().First();
DocumentationComments\MethodDocumentationCommentTests.cs (1)
205var type = compilation.Assembly.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
Symbols\AssemblyAndNamespaceTests.cs (1)
36Assert.Equal(String.Empty, sym.GlobalNamespace.Name);
Symbols\CompilationCreationTests.cs (1)
2524var typeC5 = c5.Assembly.GlobalNamespace.GetTypeMembers("C5").Single();
Symbols\ExtensionMethodTests.cs (1)
117var refType = compilation.Assembly.GlobalNamespace.GetMember<NamedTypeSymbol>("A");
Symbols\ImplicitClassTests.cs (2)
30var n = ((NamespaceSymbol)c.Assembly.GlobalNamespace.GetMembers("N").Single()); 60var scriptClass = (NamedTypeSymbol)c.Assembly.GlobalNamespace.GetMember("Script");
Symbols\Retargeting\RetargetingTests.cs (1)
733NamedTypeSymbol c1 = comp1.Assembly.GlobalNamespace.GetTypeMembers("C1").Single();
Symbols\Source\EventTests.cs (1)
42var actualSymbols = comp.Assembly.GlobalNamespace.GetMembers();
Symbols\Source\ExternAliasTests.cs (1)
484var aliasedGlobalNamespace = ((IAssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef)).GlobalNamespace;
Symbols\Source\MethodTests.cs (1)
1427NamedTypeSymbol nts = comp.Assembly.GlobalNamespace.GetTypeMembers()[0];
Symbols\TypeTests.cs (6)
927var typeSym = comp.Assembly.GlobalNamespace.GetTypeMembers().First(); 945NamedTypeSymbol testTypeSymbol = comp.Assembly.GlobalNamespace.GetTypeMembers("Test").Single() as NamedTypeSymbol; 967var typeSym = comp.Assembly.GlobalNamespace.GetTypeMembers("MyClass").First(); 981NamedTypeSymbol testTypeSymbol = comp.Assembly.GlobalNamespace.GetTypeMembers("MyClass").Single() as NamedTypeSymbol; 994NamedTypeSymbol testTypeSymbol = comp.Assembly.GlobalNamespace.GetTypeMembers("X").Single() as NamedTypeSymbol; 1017var typeSym = comp.Assembly.GlobalNamespace.GetTypeMembers("SubGenericClass").First();
Microsoft.CodeAnalysis.Features (1)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
224GetCompletionItemsForTopLevelTypeDeclarations(assembly.GlobalNamespace, builder, cancellationToken);
Microsoft.CodeAnalysis.Features.UnitTests (1)
FindUsages\DefinitionItemFactoryTests.cs (1)
439var symbol = compilation.Assembly.GlobalNamespace;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
733Private ReadOnly Property IAssemblySymbol_GlobalNamespace As INamespaceSymbol Implements IAssemblySymbol.GlobalNamespace
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
CodeGen\CodeGenTuples.vb (5)
8956ns = comp.CreateErrorNamespaceSymbol(comp.Assembly.GlobalNamespace, "a") 8960Assert.Same(comp.Assembly.GlobalNamespace, ns.ContainingSymbol) 8961Assert.Same(comp.Assembly.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly) 8962Assert.Same(comp.Assembly.GlobalNamespace.ContainingModule, ns.ContainingModule) 8982vt2 = comp.CreateErrorTypeSymbol(comp.CreateErrorNamespaceSymbol(comp.Assembly.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (11)
Compilation\CompilationAPITests.vb (2)
2558TestEqualityRecursive(compilation.Assembly.GlobalNamespace, 2559compilation.Assembly.GlobalNamespace,
Semantics\OverloadResolution.vb (9)
101Dim TestClass1 = c1.Assembly.GlobalNamespace.GetTypeMembers("TestClass1").Single() 138Dim base = c1.Assembly.GlobalNamespace.GetTypeMembers("Base").Single() 139Dim baseExt = c1.Assembly.GlobalNamespace.GetTypeMembers("BaseExt").Single() 141Dim derived = c1.Assembly.GlobalNamespace.GetTypeMembers("Derived").Single() 142Dim derivedExt = c1.Assembly.GlobalNamespace.GetTypeMembers("DerivedExt").Single() 143Dim ext = c1.Assembly.GlobalNamespace.GetTypeMembers("Ext").Single() 144Dim ext1 = c1.Assembly.GlobalNamespace.GetTypeMembers("Ext1").Single() 182Dim TestClass2 = c1.Assembly.GlobalNamespace.GetTypeMembers("TestClass2").Single() 3067Dim TestClass1 = c1.Assembly.GlobalNamespace.GetTypeMembers("TestClass1").Single()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\CompilationCreationTests.vb (1)
1963Dim typeC5 = c5.[Assembly].GlobalNamespace.GetTypeMembers("C5").Single()
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
237Bind(index, assemblySymbol.GlobalNamespace, ref results.AsRef(), cancellationToken);
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (2)
132var globalNamespaceName = assembly.GlobalNamespace.Name; 133symbolMap.Add(globalNamespaceName, assembly.GlobalNamespace);
Shared\Extensions\ISolutionExtensions.cs (1)
31results.Add(compilation.Assembly.GlobalNamespace);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
96result.AddIfNotNull(assembly.GlobalNamespace);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (1)
2950var namespacesAndTypes = assemblyReference.GlobalNamespace.GetAllNamespacesAndTypes(CancellationToken.None);
SymbolKeyTests.cs (1)
1532GetDeclaredSymbols(compilation.Assembly.GlobalNamespace, list);
Microsoft.VisualStudio.LanguageServices (5)
Library\ObjectBrowser\AbstractListItemFactory.cs (5)
410stack.Push(assemblySymbol.GlobalNamespace); 733namespaceSymbol = referenceList.GetAssembly(compilation).GlobalNamespace; 737namespaceSymbol = compilation.Assembly.GlobalNamespace; 749stack.Push(assemblySymbol.GlobalNamespace); 781namespaceStack.Push(assemblySymbol.GlobalNamespace);
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
52INamespaceSymbol outerNamespace = assembly.GlobalNamespace;