1836 references to GlobalNamespace
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
92INamespaceOrTypeSymbol containingSymbol = _compilation.GlobalNamespace; 576INamespaceOrTypeSymbol containingSymbol = _compilation.GlobalNamespace;
DocumentationCommentId.cs (2)
772containers.Add(compilation.GlobalNamespace); 1015containers.Add(compilation.GlobalNamespace);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
92INamespaceOrTypeSymbol containingSymbol = _compilation.GlobalNamespace; 576INamespaceOrTypeSymbol containingSymbol = _compilation.GlobalNamespace;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
123var currentNamespace = reader.Compilation.GlobalNamespace;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
86return new SymbolKeyResolution(reader.Compilation.GlobalNamespace);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
SymbolKey\SymbolKeyTests.cs (3)
47var type = compilation.GlobalNamespace.GetMembers("C1").Single(); 83var members = compilation.GlobalNamespace.GetMembers("C").ToArray(); 122var type = compilation.GlobalNamespace.GetMembers("C").Single().GetMembers("Inner").Single();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (49)
BreakingChanges.cs (3)
101var baseClass = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 113var derivedClass = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 165var indexer = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("MonthDays").Indexers.Single();
CodeGen\CodeGenAsyncIteratorTests.cs (3)
956var m2 = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M2"); 960var m = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 1123var m = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M");
CodeGen\CodeGenAsyncLocalsTests.cs (1)
963var testClass = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test");
CodeGen\CodeGenDynamicTests.cs (1)
311Assert.Equal(1, ((CSharpCompilation)c.Compilation).GlobalNamespace.GetMember<NamespaceSymbol>("System").GetMember<NamedTypeSymbol>("Func`13").Arity);
CodeGen\CodeGenExplicitImplementationTests.cs (1)
999var classC = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
CodeGen\CodeGenInterfaceImplementation.cs (1)
2736var global = comp.GlobalNamespace;
CodeGen\CodeGenOverridingAndHiding.cs (3)
3599var baseType = comp.GlobalNamespace.GetMember<NamespaceSymbol>("Metadata").GetMember<NamedTypeSymbol>("LeastModoptsWin"); 3600var derivedType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 3941var globalNamespace = compilation.GlobalNamespace;
CodeGen\CodeGenTests.cs (2)
13080var @enum = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("E"); 13298var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
CodeGen\CodeGenTupleTest.cs (23)
835var c = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 928var c = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 991var c = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 993var base1 = comp.GlobalNamespace.GetTypeMember("Base"); 6218Assert.Throws<ArgumentException>(() => comp.CreateErrorTypeSymbol(vbComp.GlobalNamespace, "a", 1)); 6221Assert.Throws<ArgumentNullException>(() => comp.CreateErrorNamespaceSymbol(vbComp.GlobalNamespace, null)); 6222Assert.Throws<ArgumentException>(() => comp.CreateErrorNamespaceSymbol(vbComp.GlobalNamespace, "a")); 6224var ns = comp.CreateErrorNamespaceSymbol(comp.GlobalNamespace, "a"); 6228Assert.Same(comp.GlobalNamespace, ns.ContainingSymbol); 6229Assert.Same(comp.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly); 6230Assert.Same(comp.GlobalNamespace.ContainingModule, ns.ContainingModule); 6248ns = comp.CreateErrorNamespaceSymbol(comp.CreateErrorNamespaceSymbol(comp.GlobalNamespace, "a"), "b"); 6251ns = comp.CreateErrorNamespaceSymbol(comp.GlobalNamespace, ""); 6255vt2 = comp.CreateErrorTypeSymbol(comp.CreateErrorNamespaceSymbol(comp.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType); 6311INamedTypeSymbol vbType = (INamedTypeSymbol)vbComp.GlobalNamespace.GetMembers("C").Single(); 6328var vbType = (ITypeSymbol)vbComp.GlobalNamespace.GetMembers("C").Single(); 6581ITypeSymbol vbType = (ITypeSymbol)vbComp.GlobalNamespace.GetMembers("C").Single(); 27396var containingType = comp.GlobalNamespace.GetTypeMembers("Program").Single(); 27418var containingType = comp.GlobalNamespace.GetTypeMembers("Program").Single(); 27978var retargetingValueTupleType = (NamedTypeSymbol)comp3.GlobalNamespace.GetMember<NamespaceSymbol>("System").GetMembers("ValueTuple").Single(); 28190var retargetingValueTupleTypes = comp2.GlobalNamespace.GetMember<NamespaceSymbol>("System").GetMembers("ValueTuple"); 28304var retargetingValueTupleTypes = comp2.GlobalNamespace.GetMember<NamespaceSymbol>("System").GetMembers("ValueTuple"); 28393var retargetingValueTupleType = (NamedTypeSymbol)comp3.GlobalNamespace.GetMember<NamespaceSymbol>("System").GetMembers("ValueTuple").Single();
CodeGen\DestructorTests.cs (1)
671var globalNamespace = compilation.GlobalNamespace;
CodeGen\FixedSizeBufferTests.cs (2)
576var f = (FieldSymbol)comp2.GlobalNamespace.GetTypeMembers("S")[0].GetMembers("x")[0]; 1156var retargetingField = comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("FixedBuffer").GetMember<RetargetingFieldSymbol>("buffer");
CodeGen\SwitchTests.cs (1)
3042var pid = ((NamedTypeSymbol)comp.GlobalNamespace.GetMembers().Single(s => s.Name.StartsWith("<PrivateImplementationDetails>", StringComparison.Ordinal)));
Emit\CompilationEmitTests.cs (1)
2718var class1 = libComp.GlobalNamespace.GetMember<SourceNamedTypeSymbol>("Class1");
Emit\EmitCustomModifiers.cs (3)
602var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 658var baseType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 666var derivedType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("D");
Emit\InAttributeModifierTests.cs (1)
4426var m = comp.GlobalNamespace.GetTypeMember("Test").GetMethod("M");
Emit\NoPiaEmbedTypes.cs (1)
5997AssertParametersWithoutNames(compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I1").GetMember<MethodSymbol>("M1").Parameters, false);
PrivateProtected.cs (1)
103var bb = (NamedTypeSymbol)baseCompilation.GlobalNamespace.GetMember("Base");
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (10)
Emit\EditAndContinue\AssemblyReferencesTests.cs (4)
80compilation0.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember("Main"), 81compilation1.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember("Main")) 152compilation0.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember("Main"), 153compilation1.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember("Main"))
Emit\NumericIntPtrTests.cs (5)
10346var method = (MethodSymbol)comp.GlobalNamespace.GetMember("I.M"); 10924var baseM = (RetargetingMethodSymbol)comp.GlobalNamespace.GetMember("Base.M"); 10927var derivedM = (MethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 10959var baseM = (RetargetingMethodSymbol)comp.GlobalNamespace.GetMember("Base.M"); 10962var derivedM = (MethodSymbol)comp.GlobalNamespace.GetMember("Derived.M");
Emit\UnmanagedTypeModifierTests.cs (1)
1446var typeParameter = c.GlobalNamespace.GetTypeMember("TestRef").GetMethod("M").TypeParameters.Single();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (142)
Attributes\AttributeTests.cs (31)
3260var globalNs = compilation.GlobalNamespace; 3308var globalNs = compilation.GlobalNamespace; 3360var globalNs = compilation.GlobalNamespace; 3412var globalNs = compilation.GlobalNamespace; 8643var indexer = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("IA").GetMember<PropertySymbol>(WellKnownMemberNames.Indexer); 8681var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("E"); 8683var method = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("E").GetMember<PEMethodSymbol>("M"); 8724var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("E"); 8726var method = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("E").GetMember<PEMethodSymbol>("M"); 8771var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("E"); 8773var method = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("E").GetMember<PEMethodSymbol>("M"); 8812var method = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PEMethodSymbol>("M"); 9406var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 9485var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 9570var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 9644var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 9716var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 9797var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 9867var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 9911var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Target"); 9919type = comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("Target"); 10240Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10244Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10261Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10269Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10290Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10294Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10316Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10320Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10342Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType); 10346Assert.False(comp.GlobalNamespace.GetTypeMember("C").GetAttributes().Single().AttributeClass.IsGenericType);
Attributes\AttributeTests_MarshalAs.cs (2)
34foreach (NamedTypeSymbol type in compilation.GlobalNamespace.GetMembers().Where(s => s.Kind == SymbolKind.NamedType)) 68foreach (NamedTypeSymbol type in compilation.GlobalNamespace.GetMembers().Where(s => s.Kind == SymbolKind.NamedType))
Attributes\AttributeTests_Nullable.cs (9)
69var imc1 = (TypeSymbol)lib2_comp.GlobalNamespace.GetMember("I0"); 89var imc2 = (TypeSymbol)client_comp.GlobalNamespace.GetMember("I0"); 133var lib2_c0 = (TypeSymbol)lib2_comp.GlobalNamespace.GetMember("C0"); 168var lib3_c0 = (TypeSymbol)lib2_comp.GlobalNamespace.GetMember("C0"); 275var imc1 = (TypeSymbol)lib2_comp.GlobalNamespace.GetMember("I0"); 4078var globalNamespace = comp.GlobalNamespace; 4164var globalNamespace = comp.GlobalNamespace; 4174globalNamespace = comp.GlobalNamespace; 4187globalNamespace = comp.GlobalNamespace;
Attributes\AttributeTests_Synthesized.cs (4)
127var pid = (NamedTypeSymbol)comp.GlobalNamespace.GetMembers().Where(s => s.Name.StartsWith("<PrivateImplementationDetails>", StringComparison.Ordinal)).Single(); 148var s = (NamedTypeSymbol)comp.GlobalNamespace.GetMembers("S").Single(); 1805var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 1904var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Test");
Diagnostics\GetDiagnosticsTests.cs (2)
182Assert.True(declaredSymbolNames.Contains(compilation.GlobalNamespace.Name)); 231Assert.True(declaredSymbolNames.Contains(compilation.GlobalNamespace.Name));
FirstClassSpanTests.cs (2)
2788Assert.IsType<RetargetingNamedTypeSymbol>(comp2.GlobalNamespace.GetMember("System.Span")); 2789Assert.IsType<RetargetingNamedTypeSymbol>(comp2.GlobalNamespace.GetMember("System.ReadOnlySpan"));
FlowAnalysis\StructTests.cs (1)
73var structType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S");
RefReadonlyParameterTests.cs (11)
441var p = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M").Parameters.Single(); 482var m = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 529var p = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M").Parameters.Single(); 975var ptr = (FunctionPointerTypeSymbol)comp.GlobalNamespace.GetMember<FieldSymbol>("C.D").Type; 1072var ptr = (FunctionPointerTypeSymbol)comp.GlobalNamespace.GetMember<FieldSymbol>("C.D").Type; 1124var ptr = (FunctionPointerTypeSymbol)comp.GlobalNamespace.GetMember<FieldSymbol>("C.D").Type; 1177var ptr = (FunctionPointerTypeSymbol)comp.GlobalNamespace.GetMember<FieldSymbol>("C.D").Type; 1226var ptr = (FunctionPointerTypeSymbol)comp.GlobalNamespace.GetMember<FieldSymbol>("C.D").Type; 1646var p = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M").Parameters.Single(); 1667var p = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M").Parameters.Single(); 1686var p = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M").Parameters.Single();
Semantics\ExperimentalAttributeTests.cs (1)
908var missingType = comp.GlobalNamespace.GetTypeMember("C").BaseTypeNoUseSiteDiagnostics;
Semantics\InlineArrayTests.cs (29)
299var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 365var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 431var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 497var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 561var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 653var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 742var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 824var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 927var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1057var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1147var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1168var buffer = comp2.GlobalNamespace.GetTypeMember("Buffer"); 1249var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1394var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1419var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1443var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1498var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1534var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1744var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1767var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1790var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1818var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 1879var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 2208var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 2235var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 2258var buffer = comp.GlobalNamespace.GetTypeMember("Buffer"); 17268var a = compilation.GlobalNamespace.GetMember<MethodSymbol>("AttributeTest.A..ctor"); 17296var a = compilation.GlobalNamespace.GetTypeMember("A").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single(); 17335var a = compilation.GlobalNamespace.GetTypeMember("A").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single();
Semantics\PrimaryConstructorTests.cs (29)
401var c = comp.GlobalNamespace.GetTypeMember("C"); 472var c = comp.GlobalNamespace.GetTypeMember("C"); 522var c = comp.GlobalNamespace.GetTypeMember("C"); 552var c = comp.GlobalNamespace.GetTypeMember("C"); 570var c = comp.GlobalNamespace.GetTypeMember("C"); 608var c = comp.GlobalNamespace.GetTypeMember("C"); 677var c = comp.GlobalNamespace.GetTypeMember("C"); 708var c = comp.GlobalNamespace.GetTypeMember("C"); 764var c = comp.GlobalNamespace.GetTypeMember("C"); 819var c = comp.GlobalNamespace.GetTypeMember("C"); 861var c = comp.GlobalNamespace.GetTypeMember("C"); 897var c = comp.GlobalNamespace.GetTypeMember("C"); 929var c = comp.GlobalNamespace.GetTypeMember("C"); 6906comp.GlobalNamespace.GetTypeMember("A").GetSimpleNonTypeMembers(".ctor").ToTestDisplayStrings()); 6908comp.GlobalNamespace.GetTypeMember("B").GetSimpleNonTypeMembers(".ctor").ToTestDisplayStrings()); 6910comp.GlobalNamespace.GetTypeMember("C").GetSimpleNonTypeMembers(".ctor").ToTestDisplayStrings()); 6912comp.GlobalNamespace.GetTypeMember("D").GetSimpleNonTypeMembers(".ctor").ToTestDisplayStrings()); 6934comp.GlobalNamespace.GetTypeMember("A").GetSimpleNonTypeMembers(".ctor").ToTestDisplayStrings()); 6936comp.GlobalNamespace.GetTypeMember("B").GetSimpleNonTypeMembers(".ctor").ToTestDisplayStrings()); 6938comp.GlobalNamespace.GetTypeMember("C").GetSimpleNonTypeMembers(".ctor").ToTestDisplayStrings()); 6940comp.GlobalNamespace.GetTypeMember("D").GetSimpleNonTypeMembers(".ctor").ToTestDisplayStrings()); 6962comp.GlobalNamespace.GetTypeMember("A").MemberNames); 6964comp.GlobalNamespace.GetTypeMember("B").MemberNames); 6966comp.GlobalNamespace.GetTypeMember("C").MemberNames); 6968comp.GlobalNamespace.GetTypeMember("D").MemberNames); 6990comp.GlobalNamespace.GetTypeMember("A").MemberNames); 6992comp.GlobalNamespace.GetTypeMember("B").MemberNames); 6994comp.GlobalNamespace.GetTypeMember("C").MemberNames); 6996comp.GlobalNamespace.GetTypeMember("D").MemberNames);
Semantics\RecordTests.cs (21)
116var point = comp.GlobalNamespace.GetTypeMember("Point"); 294var b = comp.GlobalNamespace.GetTypeMember("RecordB"); 323var r = comp.GlobalNamespace.GetTypeMember("R"); 363var r = comp.GlobalNamespace.GetTypeMember("R"); 900var c = verifier.Compilation.GlobalNamespace.GetTypeMember("C"); 3445var namedTypeSymbol = comp.GlobalNamespace.GetTypeMember("C1"); 3476var namedTypeSymbol = comp.GlobalNamespace.GetTypeMember("C1"); 3535var namedTypeSymbol = comp.GlobalNamespace.GetTypeMember("C1"); 3640Assert.Equal("class A", comp.GlobalNamespace.GetTypeMember("A") 3743Assert.Equal("class A", comp.GlobalNamespace.GetTypeMember("A") 3856Assert.Equal("class A", comp.GlobalNamespace.GetTypeMember("A") 3969Assert.Equal("class A", comp.GlobalNamespace.GetTypeMember("A") 4081Assert.Equal("class A", comp.GlobalNamespace.GetTypeMember("A") 4194Assert.Equal("class A", comp.GlobalNamespace.GetTypeMember("A") 4602Assert.Equal("class A", comp.GlobalNamespace.GetTypeMember("A") 4705Assert.Equal("class A", comp.GlobalNamespace.GetTypeMember("A") 8605var c = comp.GlobalNamespace.GetTypeMember("C"); 24801var p = comp.GlobalNamespace.GetTypeMember("R").GetMember<SourcePropertySymbolBase>("P1"); 24804p = comp.GlobalNamespace.GetTypeMember("R").GetMember<SourcePropertySymbolBase>("P2"); 24807p = comp.GlobalNamespace.GetTypeMember("R").GetMember<SourcePropertySymbolBase>("P3"); 26088var symbol = vbComp.GlobalNamespace.GetTypeMember("A");
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
179var system = compilation.GlobalNamespace.GetMembers(nameof(System)).OfType<INamespaceSymbol>().FirstOrDefault();
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
97var compilerServicesNamespace = semanticModel.Compilation.GlobalNamespace.GetQualifiedNamespace("System.Runtime.CompilerServices");
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
507return c.GlobalNamespace.GetMembers(name).Single() as INamedTypeSymbol;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (280)
Semantics\AccessCheckTests.cs (9)
737INamespaceSymbol globalNS = c.GlobalNamespace; 859INamespaceSymbol otherGlobalNS = otherC.GlobalNamespace; 898INamespaceSymbol globalNS = c1.GlobalNamespace; 936INamedTypeSymbol InOtherCompilation = c2.GlobalNamespace.GetMember("InOtherCompilation") as INamedTypeSymbol; 943INamedTypeSymbol InFriendCompilation = c3.GlobalNamespace.GetMember("InFriendCompilation") as INamedTypeSymbol; 959var classC = compilation.GlobalNamespace.GetMembers("C").OfType<INamedTypeSymbol>().Single(); 960var classQ = compilation.GlobalNamespace.GetMembers("Q").OfType<INamedTypeSymbol>().Single(); 969var c2 = ((Compilation)c).GlobalNamespace.GetMembers("C").OfType<INamedTypeSymbol>().Single(); 973classQ = ((Compilation)c).GlobalNamespace.GetMembers("Q").OfType<INamedTypeSymbol>().Single();
Semantics\AmbiguousOverrideTests.cs (16)
521var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 525var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 576var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 580var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 641var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 645var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 709var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 713var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 775var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 782var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 849var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 856var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 933var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 937var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 1016var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 1020var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived");
Semantics\ArglistTests.cs (15)
984var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 1043var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 1070var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 1102var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 1122var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 1142var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 1162var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 1182var constructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<MethodSymbol>(WellKnownMemberNames.InstanceConstructorName); 1200var constructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<MethodSymbol>(WellKnownMemberNames.InstanceConstructorName); 1218var constructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<MethodSymbol>(WellKnownMemberNames.InstanceConstructorName); 1236var constructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<MethodSymbol>(WellKnownMemberNames.InstanceConstructorName); 1254var indexer = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>(WellKnownMemberNames.Indexer); 1280var indexer = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>(WellKnownMemberNames.Indexer); 1306var indexer = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>(WellKnownMemberNames.Indexer); 1332var indexer = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>(WellKnownMemberNames.Indexer);
Semantics\BindingAsyncTests.cs (1)
34var method = (SourceMemberMethodSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single();
Semantics\BindingTests.cs (3)
2599var c = comp.GlobalNamespace.GetTypeMembers("C").Single(); 2630var c = comp.GlobalNamespace.GetTypeMembers("C").Single(); 2659var c = comp.GlobalNamespace.GetTypeMembers("C").Single();
Semantics\ConstantTests.cs (8)
2951var symbol = compilation.GlobalNamespace.GetTypeMembers("c1").First().GetMembers("Z1").First(); 2954symbol = compilation.GlobalNamespace.GetTypeMembers("c1").First().GetMembers("Z2").First(); 2999var global = compilation.GlobalNamespace; 3031var global = compilation.GlobalNamespace; 3086var global = compilation.GlobalNamespace; 3118var global = compilation.GlobalNamespace; 3176var global = compilation.GlobalNamespace; 3211var global = compilation.GlobalNamespace;
Semantics\DynamicTests.cs (3)
2155var c = compilation.GlobalNamespace.GetMember<TypeSymbol>("C"); 2183var derived = compilation.GlobalNamespace.GetMember<TypeSymbol>("Derived"); 4154var global = comp.GlobalNamespace;
Semantics\ExpressionBodiedMemberTests.cs (5)
80var global = comp.GlobalNamespace; 125var c = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 231var global = comp.GlobalNamespace; 287var global = comp.GlobalNamespace; 320var global = comp.GlobalNamespace;
Semantics\FieldInitializerBindingTests.cs (1)
247var typeSymbol = (SourceNamedTypeSymbol)compilation.GlobalNamespace.GetMembers("C").Single();
Semantics\ForEachTests.cs (1)
2176var udc = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.ImplicitConversionName);
Semantics\GenericConstraintsTests.cs (8)
996var typeParameter = compilation.GlobalNamespace.GetTypeMember("Test").TypeParameters.Single(); 1481var typeParameter = compilation.GlobalNamespace.GetTypeMember("Test").TypeParameters.Single(); 1835var typeParameter = c.GlobalNamespace.GetTypeMember("Test").TypeParameters.Single(); 1853var typeParameter = c.GlobalNamespace.GetTypeMember("Test").TypeParameters.Single(); 3142var declaredMethod = compilation.GlobalNamespace.GetTypeMember("C").GetMethod("M"); 3172var declaredMethod = compilation.GlobalNamespace.GetTypeMember("C").GetMethod("M"); 3198var declaredMethod = compilation.GlobalNamespace.GetTypeMember("C").GetMethod("M"); 3227var declaredMethod = compilation.GlobalNamespace.GetTypeMember("C").GetMethod("M");
Semantics\ImplicitlyTypeArraysTests.cs (2)
36var method = (SourceMemberMethodSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("F").Single(); 44var typeM = compilation.GlobalNamespace.GetMember<TypeSymbol>("M");
Semantics\ImplicitlyTypedLocalsTests.cs (3)
27var fieldA = compilation.GlobalNamespace.GetMember<TypeSymbol>("C").GetMember<FieldSymbol>("a"); 28var typeVar = compilation.GlobalNamespace.GetMember<TypeSymbol>("var"); 44var fieldA = compilation.GlobalNamespace.GetMember<TypeSymbol>("C").GetMember<FieldSymbol>("a");
Semantics\InheritanceBindingTests.cs (2)
6631var @interface = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I"); 6637var @class = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
Semantics\InitOnlyMemberTests.cs (34)
47var property = (PropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 402var members = ((NamedTypeSymbol)comp.GlobalNamespace.GetMember("C")).GetMembers(); 414var property = (PropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 418var property2 = (PropertySymbol)comp.GlobalNamespace.GetMember("C.Property2"); 422var property3 = (PropertySymbol)comp.GlobalNamespace.GetMember("C.Property3"); 611var property = (PropertySymbol)comp.GlobalNamespace.GetTypeMember("Derived").BaseTypeNoUseSiteDiagnostics.GetMember("Property"); 642var property = (PropertySymbol)comp.GlobalNamespace.GetMember("I.Property"); 901var property = (PropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 1156var property = (PropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 2428var members = ((NamedTypeSymbol)comp.GlobalNamespace.GetMember("C")).GetMembers(); 2451var eventSymbol = comp.GlobalNamespace.GetMember<EventSymbol>("C.Event"); 2471var constructor = comp.GlobalNamespace.GetMember<SourceConstructorSymbol>("C..ctor"); 2475var destructor = comp.GlobalNamespace.GetMember<SourceDestructorSymbol>("C.Finalize"); 2493var conversion = comp.GlobalNamespace.GetMember<SourceUserDefinedConversionSymbol>("C.op_Implicit"); 2497var addition = comp.GlobalNamespace.GetMember<SourceUserDefinedOperatorSymbol>("C.op_Addition"); 2539var cMembers = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(); 3276var property0 = (PEPropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 3283var property1 = (PropertySymbol)comp.GlobalNamespace.GetMember("Derived.Property"); 3288var property2 = (PropertySymbol)comp.GlobalNamespace.GetMember("Derived2.Property"); 3364var property0 = (PEPropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 3374var property1 = (PropertySymbol)comp.GlobalNamespace.GetMember("Derived.Property"); 3380var property2 = (PropertySymbol)comp.GlobalNamespace.GetMember("Derived2.Property"); 3485var property0 = (PEPropertySymbol)comp.GlobalNamespace.GetMember("C.this[]"); 3581var property0 = (PEPropertySymbol)comp.GlobalNamespace.GetMember("C.this[]"); 3636var method = (PEMethodSymbol)comp.GlobalNamespace.GetMember("C.M"); 3695var method = (PEMethodSymbol)comp.GlobalNamespace.GetMember("C.set_P"); 3745var method0 = (PEMethodSymbol)comp.GlobalNamespace.GetMember("C.M"); 3819var property0 = (PEPropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 3900var property0 = (PEPropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 3988var property0 = (PEPropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 4062var property = (PEPropertySymbol)comp.GlobalNamespace.GetMember("C.Property"); 4769var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single(); 4822var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single(); 4834var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single();
Semantics\InterpolationTests.cs (2)
18517var a = compilation.GlobalNamespace.GetTypeMember("A").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single(); 18553var a = compilation.GlobalNamespace.GetTypeMember("A").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single();
Semantics\LocalFunctionTests.cs (6)
398var attrType = comp.GlobalNamespace.GetTypeMember("A"); 1728Assert.Equal(comp.GlobalNamespace 1789var clsCompliantSymbol = comp.GlobalNamespace 1864var clsCompliantSymbol = comp.GlobalNamespace 1933Assert.Equal(comp.GlobalNamespace 1985Assert.Equal(comp.GlobalNamespace
Semantics\LookupTests.cs (5)
1710var global = comp.GlobalNamespace; 1784var classC = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 2008var ms = comp.GlobalNamespace.GetTypeMembers("Program").Single().GetMembers("M").OfType<MethodSymbol>(); 2039var m = comp.GlobalNamespace.GetTypeMembers("Program").Single().GetMembers("M").Single(); 2069var m = comp.GlobalNamespace.GetTypeMembers("Program").Single().GetMembers("M").Single();
Semantics\NullableReferenceTypesTests.cs (90)
98485var bf1 = (MethodSymbol)comp.GlobalNamespace.GetMember("B.F1"); 98492var bf2 = (MethodSymbol)comp.GlobalNamespace.GetMember("B.F2"); 98982var bf1 = (MethodSymbol)comp.GlobalNamespace.GetMember("B.IA.F1"); 98987var bf2 = (MethodSymbol)comp.GlobalNamespace.GetMember("B.IA.F2"); 103188var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103212i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103237i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 103262var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103286i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103313var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103337i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103364i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 103391var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103416i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103447var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103473i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103500i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 103531var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103554i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103578i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 103611var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103635i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103660i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 103696var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103723i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103751i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 103785var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103811i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103838i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 103869var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103892i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 103916i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 103952var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 103979i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 104007i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 104041var i1 = comp1.GlobalNamespace.GetTypeMember("I1"); 104066i1 = comp2.GlobalNamespace.GetTypeMember("I1"); 104092i1 = comp3.GlobalNamespace.GetTypeMember("I1"); 104163var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104185m1 = comp2.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104211var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104232m1 = comp2.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104282var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104308var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104338var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104370var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104425var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104520var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104547var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104597var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104623var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104654var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104686var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 104740var m1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("A.M1"); 107039var m1 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M1"); 107043var m2 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M2"); 107047var m3 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M3"); 107051var m4 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M4"); 107055var m5 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M5"); 107059var m6 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M6"); 107063var m7 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M7"); 107067var m8 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M8"); 107071var m9 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M9"); 107075var m10 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M10"); 107110var m1 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M1"); 107145var m1 = (MethodSymbol)compilation.GlobalNamespace.GetMember("Test2.M1"); 136986var c = comp.GlobalNamespace.GetTypeMember("C"); 137018var c = comp.GlobalNamespace.GetTypeMember("C"); 137049var c = comp.GlobalNamespace.GetTypeMember("C"); 137085var c = comp.GlobalNamespace.GetTypeMember("C"); 137114var c = comp.GlobalNamespace.GetTypeMember("C"); 137137var c = comp.GlobalNamespace.GetTypeMember("C"); 137159var c = comp.GlobalNamespace.GetTypeMember("C"); 137181var c = comp.GlobalNamespace.GetTypeMember("C"); 137207var c = comp.GlobalNamespace.GetTypeMember("C"); 137233var c = comp.GlobalNamespace.GetTypeMember("C"); 137260var c = comp.GlobalNamespace.GetTypeMember("C"); 137285var c = comp.GlobalNamespace.GetTypeMember("C"); 137315var c = comp.GlobalNamespace.GetTypeMember("C"); 137364var c = comp1.GlobalNamespace.GetTypeMember("C"); 137370c = comp2.GlobalNamespace.GetTypeMember("C"); 137376c = comp3.GlobalNamespace.GetTypeMember("C"); 137406var c = comp.GlobalNamespace.GetTypeMember("C"); 137447var c = comp1.GlobalNamespace.GetTypeMember("C"); 137488var c = comp1.GlobalNamespace.GetTypeMember("C"); 137527var c = comp1.GlobalNamespace.GetTypeMember("C"); 137566var c = comp1.GlobalNamespace.GetTypeMember("C"); 138513var c = comp2.GlobalNamespace.GetMember("C"); 138766var f = comp.GlobalNamespace.GetMember<MethodSymbol>("C.F"); 138790var f = comp.GlobalNamespace.GetMember<MethodSymbol>("C.F");
Semantics\OperatorTests.cs (4)
3202var method = (SourceMemberMethodSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single(); 6933var expectedOperator = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S1").GetMembers(WellKnownMemberNames.EqualityOperatorName). 7060Assert.Equal(comp.GlobalNamespace.GetMember<NamedTypeSymbol>("InputParameter"), info.Type.GetSymbol()); 7215Assert.Equal(comp.GlobalNamespace.GetMember<NamedTypeSymbol>("InputParameter").GetPublicSymbol(), info.Type);
Semantics\OverloadResolutionTestBase.cs (1)
35var method = (SourceMemberMethodSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single();
Semantics\RecordStructTests.cs (15)
511var point = comp2.GlobalNamespace.GetTypeMember("Point"); 661Assert.Equal(Accessibility.Internal, comp.GlobalNamespace.GetTypeMember("S1").DeclaredAccessibility); 662Assert.Equal(Accessibility.Public, comp.GlobalNamespace.GetTypeMember("S2").DeclaredAccessibility); 663Assert.Equal(Accessibility.Internal, comp.GlobalNamespace.GetTypeMember("S3").DeclaredAccessibility); 664Assert.Equal(Accessibility.ProtectedAndInternal, comp.GlobalNamespace.GetTypeMember("C").GetTypeMember("S4").DeclaredAccessibility); 665Assert.Equal(Accessibility.ProtectedOrInternal, comp.GlobalNamespace.GetTypeMember("C").GetTypeMember("S5").DeclaredAccessibility); 762Assert.Equal(new[] { "T" }, comp.GlobalNamespace.GetTypeMember("S").TypeParameters.ToTestDisplayStrings()); 1762var c = verifier.Compilation.GlobalNamespace.GetTypeMember("C"); 1809var c = verifier.Compilation.GlobalNamespace.GetTypeMember("C"); 2304Assert.Null(comp.GlobalNamespace.GetTypeMember("C").GetMember("X")); 2328Assert.Null(comp.GlobalNamespace.GetTypeMember("C").GetMember("X")); 2717var p = comp.GlobalNamespace.GetTypeMember("R").GetMember<SourcePropertySymbolBase>("P1"); 2720p = comp.GlobalNamespace.GetTypeMember("R").GetMember<SourcePropertySymbolBase>("P2"); 2723p = comp.GlobalNamespace.GetTypeMember("R").GetMember<SourcePropertySymbolBase>("P3"); 5100var b = comp.GlobalNamespace.GetTypeMember("RecordB");
Semantics\ScriptSemanticsTests.cs (3)
372var global = compilation.GlobalNamespace; 403var global = compilation.GlobalNamespace; 449var global = compilation.GlobalNamespace;
Semantics\SemanticErrorTests.cs (1)
25066var a = compilation.GlobalNamespace.GetTypeMember("A").GetMember<MethodSymbol>("M");
Semantics\StructConstructorTests.cs (4)
4829comp.GlobalNamespace.GetTypeMember("S"), 4833((Compilation)comp).GlobalNamespace.GetTypeMember("S"), 4872comp.GlobalNamespace.GetTypeMember("S"), 4875((Compilation)comp).GlobalNamespace.GetTypeMember("S"),
Semantics\StructsTests.cs (1)
394var @struct = c2.GlobalNamespace.GetMember<RetargetingNamedTypeSymbol>("S");
Semantics\SynthesizedStaticConstructorTests.cs (1)
291var typeSymbol = (SourceNamedTypeSymbol)compilation.GlobalNamespace.GetMembers("C").Single();
Semantics\TopLevelStatementsTests.cs (1)
33var type = compilation.GlobalNamespace.GetTypeMember("Program");
Semantics\UnsafeTests.cs (34)
2669var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5296var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5313var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5328var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5345var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5361var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5401var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Outer"); 5421var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Outer"); 5438var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5471var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5487var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5520var globalNamespace = compilation.GlobalNamespace; 5557var globalNamespace = compilation.GlobalNamespace; 5589var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5623var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5645var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5680var globalNamespace = compilation.GlobalNamespace; 5724var globalNamespace = compilation.GlobalNamespace; 5763var globalNamespace = compilation.GlobalNamespace; 5807var globalNamespace = compilation.GlobalNamespace; 5830var globalNamespace = compilation.GlobalNamespace; 5843var globalNamespace = compilation.GlobalNamespace; 5865var globalNamespace = compilation.GlobalNamespace; 5885var globalNamespace = compilation.GlobalNamespace; 7852var structType = compilation.GlobalNamespace.GetMember<TypeSymbol>("S"); 7919var structType = compilation.GlobalNamespace.GetMember<TypeSymbol>("S"); 8857var methodSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); 10247var arraySymbol = compilation.GlobalNamespace.GetMember<TypeSymbol>("C").GetMember<FieldSymbol>("a"); 10316var arraySymbol = compilation.GlobalNamespace.GetMember<TypeSymbol>("C").GetMember<FieldSymbol>("a"); 12342var s = CreateCompilation(text).GlobalNamespace.GetMember<TypeSymbol>("S"); 13271Assert.Equal(ManagedKind.Unmanaged, comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S").ManagedKindNoUseSiteDiagnostics); 13275Assert.Equal(ManagedKind.Unmanaged, comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S").ManagedKindNoUseSiteDiagnostics); 13306Assert.Equal(ManagedKind.Unmanaged, comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S").ManagedKindNoUseSiteDiagnostics); 13310Assert.Equal(ManagedKind.Unmanaged, comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S").ManagedKindNoUseSiteDiagnostics);
SourceGeneration\GeneratorDriverTests.cs (1)
140var generatedClass = outputCompilation.GlobalNamespace.GetTypeMembers("GeneratedClass").Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1074)
Compilation\CompilationAPITests.cs (4)
1639var mainMethod = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<MethodSymbol>("Main"); 1872var mainMethod = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<MethodSymbol>("Main"); 2770var fakeIntType = compilation.CreateErrorTypeSymbol(compilation.CreateErrorNamespaceSymbol(compilation.GlobalNamespace, "System"), "Int32", arity: 0); 2960var fakeIntType = compilation.CreateErrorTypeSymbol(compilation.CreateErrorNamespaceSymbol(compilation.GlobalNamespace, "System"), "Int32", arity: 0);
Compilation\ForEachStatementInfoTests.cs (2)
37var e1 = (ITypeSymbol)c.GlobalNamespace.GetMembers("E1").Single(); 44var e2 = (ITypeSymbol)c.GlobalNamespace.GetMembers("E2").Single();
Compilation\GetSemanticInfoBrokenCodeTests.cs (1)
180var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>(TypeSymbol.ImplicitTypeName);
Compilation\GetSemanticInfoTests.cs (45)
1272var eventSymbol = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IEventSymbol>("E"); 1300var eventSymbol = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IEventSymbol>("E"); 1327var eventSymbol = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IEventSymbol>("E"); 1354var eventSymbol = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IEventSymbol>("E"); 1390return (INamedTypeSymbol)comp.GlobalNamespace.GetMember<INamespaceSymbol>("System").GetMembers("Action").Where(s => !((INamedTypeSymbol)s).IsGenericType).Single(); 1417var indexerSymbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Where(i => i.ParameterCount == 1).Single().GetPublicSymbol(); 1455var indexerSymbol1 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Where(i => i.ParameterCount == 1).Single().GetPublicSymbol(); 1456var indexerSymbol2 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Where(i => i.ParameterCount == 2).Single().GetPublicSymbol(); 1614Assert.Equal(comp.GlobalNamespace.GetMember<INamedTypeSymbol>("A"), symbol.ContainingSymbol); //from the type, not the method 2223var classC = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 2281var task1 = new Task(() => comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMembers()); 2282var task2 = new Task(() => comp.GlobalNamespace.GetMember<NamedTypeSymbol>("IA").GetMembers()); 2720var type = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 2791var operatorSymbol = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>(operatorName); 2837var conversions = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("S").GetMembers(WellKnownMemberNames.ExplicitConversionName); 2867var conversions = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S").GetMembers(WellKnownMemberNames.ExplicitConversionName); 2928var operators = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("UnaryOperator").GetMembers(WellKnownMemberNames.UnaryPlusOperatorName); 2960var operators = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.UnaryPlusOperatorName); 3020var operators = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("IncrementOperator").GetMembers(WellKnownMemberNames.IncrementOperatorName); 3052var operators = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.IncrementOperatorName); 3094var operators = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName); 3126var operators = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName); 3168var operators = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName); 3200var operators = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName); 3243var operators = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.AdditionOperatorName).Cast<IMethodSymbol>(); 3327var gType = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("G"); 3328var mngMethod = (IMethodSymbol)comp.GlobalNamespace.GetMember<INamedTypeSymbol>("Z").GetMembers("MNG").First(); 3393var gType = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("G"); 3394var mngMethod = (IMethodSymbol)comp.GlobalNamespace.GetMember<INamedTypeSymbol>("Z").GetMembers("MNG").First(); 3790Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>("M"), info.CandidateSymbols.Single()); 3850Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>("M"), info.CandidateSymbols.Single()); 3917Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("IA").GetMember<IPropertySymbol>("P"), info.Symbol); 4428var global = compilation.GlobalNamespace; 4482var global = compilation.GlobalNamespace; 4528var global = compilation.GlobalNamespace; 4582var global = compilation.GlobalNamespace; 4636var classC = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4676var global = comp.GlobalNamespace; 4721var global = comp.GlobalNamespace; 5584var typeC = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 5622var typeB = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("B"); 5669var typeC = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 5722var global = comp.GlobalNamespace; 5834Assert.Equal(3, comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").StaticConstructors.Length); 5878Assert.Equal(3, comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").InstanceConstructors.Length);
Compilation\ReferenceManagerTests.cs (8)
1651var method = comp.GlobalNamespace. 1779var moduleTypeSymbol1 = comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("TypeFromModule"); 1791var moduleTypeSymbol2 = comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("TypeFromModule"); 1823var implicitTypeCount1 = comp1.GlobalNamespace.GetMember<NamespaceSymbol>("A").GetMembers(TypeSymbol.ImplicitTypeName).Length; 1829var implicitTypeCount2 = comp2.GlobalNamespace.GetMember<NamespaceSymbol>("A").GetMembers(TypeSymbol.ImplicitTypeName).Length; 1869var mAll = mainAll.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers("m"); 1874var mInternal = mainInternal.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers("m"); 1879var mPublic = mainPublic.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers("m");
Compilation\SemanticModelAPITests.cs (19)
461var global = comp.GlobalNamespace; 539var a = comp.GlobalNamespace.GetTypeMembers("A", 0).Single().ISymbol; 565var b = comp.GlobalNamespace.GetTypeMembers("B", 0).Single().ISymbol; 593var c = comp.GlobalNamespace.GetTypeMembers("C", 1).Single(); 617var a = comp.GlobalNamespace.GetTypeMembers("A", 1).Single(); 619var b = comp.GlobalNamespace.GetTypeMembers("B", 1).Single(); 679Assert.Equal(compilation.GlobalNamespace.GetTypeMembers("Program", 0).Single(), info.Symbol); 734var a = comp.GlobalNamespace.GetTypeMembers("A", 0).Single(); 757var global = comp.GlobalNamespace; 824var bOuter = comp.GlobalNamespace.GetTypeMembers("B", 0).Single(); 825var bInner = (comp.GlobalNamespace.GetMembers("N").Single() as INamespaceSymbol).GetTypeMembers("B", 0).Single(); 1235Assert.Equal(symbol.Target, comp.GlobalNamespace.GetMember<INamespaceSymbol>("System")); 1276Assert.Equal(0, comp2.GlobalNamespace.GetMembers("X").Length); //Doesn't contain the alias target namespace as a child. 1368Assert.Equal(comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C"), symbol.ContainingType); 1720var classQ = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("Q"); 2084Assert.Equal(comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C"), symbol.ContainingType); 2101Assert.Equal(comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C"), symbol.ContainingType); 3814var extensionMethod = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Extensions").GetMember<MethodSymbol>("ToString"); 4376var globalNs = compilation.GlobalNamespace;
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (14)
1935var method = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("E").GetMember<IMethodSymbol>("M"); 1975method = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>("M"); 2760var global = compilation.GlobalNamespace; 2937var compSym = compilation.GlobalNamespace.GetMembers("System").First() as INamespaceSymbol; 3111var nsg = comp.GlobalNamespace; 3756var memSymbol = compilation.GlobalNamespace.GetMembers("System").Single(); 3993var typeA = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("A"); 4082var classM = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("M"); 4434var conversion = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>(WellKnownMemberNames.ImplicitConversionName); 4465var conversion = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>(WellKnownMemberNames.ExplicitConversionName); 4496var @operator = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>(WellKnownMemberNames.AdditionOperatorName); 4531var @namespace = compilation.GlobalNamespace.GetMember<INamespaceSymbol>("Goo"); 4568var @namespace = compilation.GlobalNamespace.GetMember<INamespaceSymbol>("Goo"); 4659var declaringType = compilation.GlobalNamespace.GetMember<ITypeSymbol>("Enclosing").GetMember<ITypeSymbol>("Declaring");
Compilation\SemanticModelGetSemanticInfoTests.cs (8)
1112var type = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 1146type = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 1176type = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 1206type = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("A"); 1232type = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 1259type = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 1355type = compilation.GlobalNamespace.GetMember<INamespaceSymbol>("N2").GetMember<INamedTypeSymbol>("C"); 1393type = compilation.GlobalNamespace.GetMember<INamespaceSymbol>("N").GetMember<INamedTypeSymbol>("C");
DeclarationTests.cs (1)
265Assert.Equal(SymbolKind.NamedType, comp.GlobalNamespace.GetMembers()[0].Kind);
DocumentationComments\ConstructorDocumentationCommentTests.cs (1)
41_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\CrefTests.cs (102)
407var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Program"); 427var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Program").GetMember<MethodSymbol>("M"); 444var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Program").TypeParameters.Single(); 499var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("M"); 521var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Outer").GetMember<MethodSymbol>("M"); 541var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Program").GetMember<MethodSymbol>("M"); 659var obsoleteType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 662var testType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 693var obsoleteType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 696var testType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Test"); 909var typeA = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("A"); 912var typeB = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("B"); 1005var typeA = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("A"); 1008var typeB = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("B"); 1104var typeA = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("A"); 1107var typeB = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("B"); 1205var expectedCandidates = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers("M").OfType<MethodSymbol>(); 1248var expectedSymbol = compilation.GlobalNamespace.GetMembers("B").OfType<SourceNamedTypeSymbol>().Single(); 1269var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMembers("M").OfType<MethodSymbol>(). 1291var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMembers("M").OfType<MethodSymbol>(). 1313var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMembers("M").OfType<MethodSymbol>(). 1335var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMembers("M").OfType<MethodSymbol>(). 1357var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMembers("M").OfType<MethodSymbol>(). 1379var expectedCandidates = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMembers("M"); 1408var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMembers("M").OfType<MethodSymbol>(). 1428var expectedOriginalDefinitionSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B"); 1453var expectedOriginalDefinitionSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B"); 1479var expectedOriginalDefinitionSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<MethodSymbol>("M"); 1505var expectedOriginalDefinitionSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<MethodSymbol>("M"); 1530var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").TypeArguments()[0]; 1601var expectedOriginalDefinitionSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMembers("M").OfType<MethodSymbol>() 1632var expectedOriginalDefinitionSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<NamedTypeSymbol>("B").GetMember<MethodSymbol>("M"); 1734var expectedOriginalDefinitionSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMembers("M").OfType<MethodSymbol>(). 1760var expectedOriginalDefinitionSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMembers("M").OfType<MethodSymbol>(). 1782var expectedOriginalDefinitionSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A").InstanceConstructors.Single(); 1809compilation.GlobalNamespace 1841var expectedSymbol = compilation.GlobalNamespace 1905var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("ClientUtils").GetMember<MethodSymbol>("Goo"); 1940var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base").GetMember<FieldSymbol>("F"); 1975var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base").GetMember<FieldSymbol>("F"); 2239var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Single(); 2260var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Single(); 2306var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.LogicalNotOperatorName); 2357var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.LogicalNotOperatorName); 2411var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.LogicalNotOperatorName).OfType<MethodSymbol>(). 2432var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.LogicalNotOperatorName); 2452var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.LogicalNotOperatorName).InstanceConstructors.Single(); 2473var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.LogicalNotOperatorName).InstanceConstructors.Single(); 2494var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.LogicalNotOperatorName).InstanceConstructors.Single(); 2518var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.DivisionOperatorName); 2542var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.DivisionOperatorName); 2596var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.DivisionOperatorName).OfType<MethodSymbol>(). 2617var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.DivisionOperatorName); 2637var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.DivisionOperatorName).InstanceConstructors.Single(); 2681var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.DivisionOperatorName).InstanceConstructors.Single(); 2702var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.DivisionOperatorName).InstanceConstructors.Single(); 2726var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.ExplicitConversionName); 2750var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.ImplicitConversionName); 2804var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.ImplicitConversionName).OfType<MethodSymbol>(). 2840var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.ImplicitConversionName).OfType<MethodSymbol>(). 2861var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.ExplicitConversionName); 2881var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.ImplicitConversionName).InstanceConstructors.Single(); 2902var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.ExplicitConversionName).InstanceConstructors.Single(); 2923var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.ImplicitConversionName).InstanceConstructors.Single(); 2945var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); 2967var expectedTypeSymbol = ((Compilation)compilation).GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 3002var typeA = ((Compilation)compilation).GlobalNamespace.GetMember<INamedTypeSymbol>("A"); 3074var expectedIndexer = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Single().ISymbol; 3099var typeC = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 3126var typeC = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 3372var global = compilation.GlobalNamespace; 4788var overridingMethod = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Derived").GetMember<IMethodSymbol>("M"); 4822var overridingMethod = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Middle").GetMember<MethodSymbol>("M"); 4850var overridingMethod = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Derived").GetMember<IMethodSymbol>("M"); 4877var overridingMethod = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Derived").GetMember<IMethodSymbol>("M"); 4938var overridingMethod = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Derived").GetMember<IMethodSymbol>("M"); 4980var global = compilation.GlobalNamespace; 5012var constructor = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("G").InstanceConstructors.Single(); 5084var outerCtor = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Outer").InstanceConstructors.Single(); 5141var type = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("GenericClass"); 5232var type = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 5446Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"), model.GetSymbolInfo(cref).Symbol); 5472var expectedSymbol = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>("Goo"); 5494var expectedSymbol = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Outer").GetMember<INamedTypeSymbol>("Inner"); 5597var expectedSymbol = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 5627var expectedSymbol = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 5846var delegateConstructor = compilation.GlobalNamespace. 5898var expectedSymbol = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("GetEnumerator"); 5971var expectedSymbol = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(); 6023var expectedSymbolOriginalDefinition = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(); 6110var expectedReturnTypeSymbol = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("X").GetMember<INamedTypeSymbol>("Y"); 6142var classA = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("A"); 6185var outer = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Outer"); 6335var accessor = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Outer").GetMember<INamedTypeSymbol>("Inner").GetMember<IPropertySymbol>("P").GetMethod; 6336var inheritedType = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Base").GetMember<INamedTypeSymbol>("Inherited"); 6436var derivedInterface = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("IDerived"); 6474var symbol = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("I"); 6500var outer = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 6539Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"), actualSymbol1.OriginalDefinition); 6562Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"), model.GetSymbolInfo(cref).Symbol); 6584Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"), model.GetSymbolInfo(cref).Symbol); 6607Assert.Equal(compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Cat"), model.GetSymbolInfo(cref).Symbol);
DocumentationComments\DestructorDocumentationCommentTests.cs (1)
34_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\DocumentationCommentCompilerTests.cs (5)
928var method = comp.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 1514var property = comp.GlobalNamespace.GetMember<PropertySymbol>("C.P"); 1652var property = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").Indexers.Single(); 5226var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5262var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
DocumentationComments\DocumentationCommentIDTests.cs (18)
47var field = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<FieldSymbol>("f"); 77var field = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<FieldSymbol>("f"); 92var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 108var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<EventSymbol>("E"); 123var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<FieldSymbol>("f"); 183var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); 211var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 225var symbol = comp.GlobalNamespace.GetMember<NamespaceSymbol>("System"); 239var symbol = comp.GlobalNamespace; 256var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M").Parameters.Single(); 271var field = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<FieldSymbol>("f"); 287var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P"); 324var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 350var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 370var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 396var method = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<NamedTypeSymbol>("B").GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); 416var method = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test").GetMember<MethodSymbol>("Clone").ReturnType; 436var method = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test").GetMember<MethodSymbol>("Clone").ReturnType;
DocumentationComments\EventDocumentationCommentTests.cs (1)
34_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMember<NamespaceSymbol>("Acme");
DocumentationComments\FieldDocumentationCommentTests.cs (1)
58_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\IncludeTests.cs (2)
53var acmeNamespace = (NamespaceSymbol)compilation.GlobalNamespace.GetMembers("Acme").Single(); 115var acmeNamespace = (NamespaceSymbol)compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\MethodDocumentationCommentTests.cs (1)
71_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\ParameterTests.cs (15)
38var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 61var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 85var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 109var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 138var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 163var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 276var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 302var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 329var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 352var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 377var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 577AssertEx.SetEqual(model.LookupSymbols(pos4), compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").TypeParameters.Single()); 605AssertEx.SetEqual(model.LookupSymbols(pos4), compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").TypeParameters.Single()); 645var type = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 693var method = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Program").GetMember<MethodSymbol>("M").GetPublicSymbol();
DocumentationComments\PartialTypeDocumentationCommentTests.cs (1)
51_gooClass = _compilation.GlobalNamespace.GetTypeMembers("Goo").Single();
DocumentationComments\PropertyDocumentationCommentTests.cs (1)
35_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\TypeDocumentationCommentTests.cs (2)
46_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single(); 53Assert.Equal("T:Color", _compilation.GlobalNamespace.GetTypeMembers("Color").Single().GetDocumentationCommentId());
SymbolDisplay\SymbolDisplayTests.cs (13)
2284var a = (ITypeSymbol)comp.GlobalNamespace.GetMembers("A").Single(); 3591var global = comp.GlobalNamespace; 3620var global = comp.GlobalNamespace; 4745var tsym2 = comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("Gen"); 4819var symbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); 4846var a = (ITypeSymbol)comp.GlobalNamespace.GetMembers("A").Single(); 4879var eventSymbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<EventSymbol>("E"); 4942var namespaceSymbol = comp.GlobalNamespace.GetMember<NamespaceSymbol>("N"); 5038var outer = (INamedTypeSymbol)vbComp.GlobalNamespace.GetMembers("Outer").Single(); 5116var method = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Program").GetMember<MethodSymbol>("M"); 5381var global = comp.GlobalNamespace; 5686var global = comp.GlobalNamespace; 5890var global = comp.GlobalNamespace;
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (14)
42var global = compilation.GlobalNamespace; 101var global = compilation.GlobalNamespace; 152var global = compilation.GlobalNamespace; 207var global = compilation.GlobalNamespace; 317var global = compilation.GlobalNamespace; 347var global = compilation.GlobalNamespace; 380var global = compilation.GlobalNamespace; 419var global = compilation.GlobalNamespace; 472var global = compilation.GlobalNamespace; 566var global = compilation.GlobalNamespace; 634var global = compilation.GlobalNamespace; 694var global = compilation.GlobalNamespace; 752var global = compilation.GlobalNamespace; 1024var classDisposable = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("Disposable");
Symbols\AnonymousTypesSymbolTests.cs (1)
1681var programType = (NamedTypeSymbol)(comp.GlobalNamespace.GetTypeMembers("Program").Single());
Symbols\ArrayTypeSymbolTests.cs (1)
33var field = c.GlobalNamespace.GetMember<NamedTypeSymbol>("X").GetMember<FieldSymbol>("A");
Symbols\AssemblyAndNamespaceTests.cs (7)
74var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 125var global = comp.GlobalNamespace; 168var global = comp.GlobalNamespace; 213var global = comp.GlobalNamespace; // throw 261var global = comp.GlobalNamespace; // throw 302var global = comp.GlobalNamespace; // throw 355var global = compilation.GlobalNamespace;
Symbols\CompilationCreationTests.cs (3)
74TypeSymbol c107 = c1.GlobalNamespace.GetTypeMembers("C107").Single(); 103Assert.Equal(SpecialType.None, c2.GlobalNamespace.GetTypeMembers("C107").Single().SpecialType); 2596NamespaceOrTypeSymbol current = c.GlobalNamespace;
Symbols\ConversionTests.cs (7)
27var sys = compilation.GlobalNamespace.ChildNamespace("System"); 228var global = compilation.GlobalNamespace; 307var classC = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 310var interfaceI3 = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I3"); 2062var destinationType = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").Construct(comp.GetSpecialType(SpecialType.System_Int32)); 2145Assert.Equal(comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C"), method.ContainingType); 2179Assert.Equal(comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C"), method.ContainingType);
Symbols\CovariantReturnTests.cs (25)
247var member = comp.GlobalNamespace.GetMember(methodName); 357var genericType = (NamedTypeSymbol)comp.GlobalNamespace.GetMember(containingTypeName); 359var constructedType = genericType.Construct(typeArguments.Select(n => (TypeSymbol)comp.GlobalNamespace.GetMember(n))); 365var method = comp.GlobalNamespace.GetMember(methodName); 661verifyAttribute((MethodSymbol)comp.GlobalNamespace.GetMember("Derived.M1"), needsAttribute: true); 662verifyAttribute((MethodSymbol)comp.GlobalNamespace.GetMember("Derived.get_P1"), needsAttribute: true); 663verifyAttribute((MethodSymbol)comp.GlobalNamespace.GetMember("Derived.M2"), needsAttribute: false); 664verifyAttribute((MethodSymbol)comp.GlobalNamespace.GetMember("Derived.get_P2"), needsAttribute: false); 665verifyAttribute((MethodSymbol)comp.GlobalNamespace.GetMember("Derived.get_Item"), needsAttribute: true); 666verifyAttribute((MethodSymbol)comp.GlobalNamespace.GetMember("Derived2.get_Item"), needsAttribute: false); 3776var globalNamespace = comp.GlobalNamespace; 3891var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4010var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4133var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4248var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4357var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4529var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.get_Prop"); 4598var member = (MethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4646var member = (MethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4694var member = (MethodSymbol)comp.GlobalNamespace.GetMember("Container.Derived.M"); 4757var member = (MethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4820var member = (MethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4877var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.get_P"); 4941var member = (MethodSymbol)comp.GlobalNamespace.GetMember("Derived.get_P"); 5005var member = (MethodSymbol)comp.GlobalNamespace.GetMember("Derived.M");
Symbols\DefaultInterfaceImplementationTests.cs (4)
7771var derived = compilation1.GlobalNamespace.GetTypeMember("Test1"); 13915var i1 = compilation1.GlobalNamespace.GetTypeMember("I1"); 49532var i1 = compilation1.GlobalNamespace.GetTypeMember("I1"); 49580var i1 = compilation1.GlobalNamespace.GetTypeMember("I1");
Symbols\DestructorTests.cs (1)
400var destructor = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>(WellKnownMemberNames.DestructorName);
Symbols\ErrorTypeSymbolTests.cs (1)
68var allTypes = compilation.GlobalNamespace.GetTypeMembers();
Symbols\ExtensionMethodTests.cs (9)
2797var extensionMethod = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); 2845var extensionMethod = compilation2.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); 2848var myStruct = (NamedTypeSymbol)compilation2.GlobalNamespace.GetMember<NamedTypeSymbol>("MyStruct"); 2868extensionMethod = compilation2.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); 2871myStruct = (NamedTypeSymbol)compilation2.GlobalNamespace.GetMember<NamedTypeSymbol>("MyStruct"); 2948var globalNamespace = compilation.GlobalNamespace; 3006var globalNamespace = compilation.GlobalNamespace; 4091var extensionMethod = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M"); 4126var a = compilation.GlobalNamespace.GetTypeMember("A").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single();
Symbols\GenericConstraintTests.cs (7)
3354var globalNamespace = compilation.GlobalNamespace; 5245var @namespace = compilation.GlobalNamespace; 5288var @namespace = compilation.GlobalNamespace; 5469var @namespace = compilation.GlobalNamespace; 5588var @namespace = compilation.GlobalNamespace; 6333var derivedType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 6354var implementingType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Implementation");
Symbols\ImplicitClassTests.cs (1)
43n = ((NamespaceSymbol)c2.GlobalNamespace.GetMembers("N").Single());
Symbols\IndexedPropertyTests.cs (5)
986var @namespace = (NamespaceSymbol)((CSharpCompilation)compilation2.Compilation).GlobalNamespace; 1087var @namespace = (NamespaceSymbol)((CSharpCompilation)compilation2.Compilation).GlobalNamespace; 2511var interfaceProperty = comp.GlobalNamespace 2519var sourceType1 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 2523var sourceType2 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("D");
Symbols\IndexerTests.cs (40)
128var globalNamespace = (NamespaceSymbol)((CSharpCompilation)compilation.Compilation).GlobalNamespace; 282var classC = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 316var interface1 = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I1"); 319var interface2 = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I2"); 322var @class = compilation.GlobalNamespace.GetMember<SourceNamedTypeSymbol>("C"); 398var interface1 = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I1"); 401var interface2 = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I2"); 404var @class = compilation.GlobalNamespace.GetMember<SourceNamedTypeSymbol>("C"); 475var @interface = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I1"); 481var @class = compilation.GlobalNamespace.GetMember<SourceNamedTypeSymbol>("C"); 541var @interface = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I1"); 547var @class = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 611var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 614var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 668var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 671var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 736var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 739var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 807var baseClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 810var derivedClass = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 1291var baseClass = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 1435var indexer = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B").Indexers.Single(); 1460var indexer = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("I").Indexers.Single(); 1514var derivedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("D"); 1567var classA = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 1568var classB = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B"); 1569var classC = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 1598var classA = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 2128var indexer = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Program").Indexers.Single(); 2166var loopResult = Parallel.ForEach(compilation.GlobalNamespace.GetTypeMembers(), type => 2197var loopResult = Parallel.ForEach(compilation.GlobalNamespace.GetTypeMembers(), type => 2559Assert.True(((TypeSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single()).GetMembers().Any(x => x.IsIndexer())); 2563Assert.True(((TypeSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single()).GetMembers().Any(x => x.IsIndexer())); 2623var baseType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 2624var derivedType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 2710var baseType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 2711var derived1Type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived1"); 2712var derived2Type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived2"); 2863var unsubstitutedType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 2954var a = compilation.GlobalNamespace.GetTypeMember("A").InstanceConstructors.Where(c => !c.IsDefaultValueTypeConstructor()).Single();
Symbols\InterfaceImplementationTests.cs (33)
49var global = comp.GlobalNamespace; 120var global = comp.GlobalNamespace; 176var global = comp.GlobalNamespace; 243var global = comp.GlobalNamespace; 315var global = comp.GlobalNamespace; 372var global = comp.GlobalNamespace; 429var global = comp.GlobalNamespace; 505var global = comp.GlobalNamespace; 573var global = comp.GlobalNamespace; 623var global = comp.GlobalNamespace; 674var global = comp.GlobalNamespace; 735var global = comp.GlobalNamespace; 825var global = comp.GlobalNamespace; 907var global = comp.GlobalNamespace; 978var global = comp2.GlobalNamespace; 1055var global = comp.GlobalNamespace; 1148var global = comp.GlobalNamespace; 1149var type = comp.GlobalNamespace.GetTypeMembers("c2").Single(); 1218var global = comp.GlobalNamespace; 1289var global = comp.GlobalNamespace; 1345var global = comp.GlobalNamespace; 1420var global = comp.GlobalNamespace; 1540var global = comp.GlobalNamespace; 1590var typeSymbol = comp.GlobalNamespace.GetTypeMembers("C1").Single(); 1629var global = comp.GlobalNamespace; 1689var global = comp.GlobalNamespace; 1761var globalNamespace = compilation.GlobalNamespace; 1856var global = comp.GlobalNamespace; 1899var derivedType = comp2.GlobalNamespace.GetMember<SourceNamedTypeSymbol>("D"); 1958var global = comp.GlobalNamespace; 2021var global = comp.GlobalNamespace; 2211var global = comp.GlobalNamespace; 2284var global = comp.GlobalNamespace;
Symbols\InterfaceOverriddenOrHiddenMembersTests.cs (1)
797var global = comp.GlobalNamespace;
Symbols\Metadata\MetadataMemberTests.cs (3)
443var namespaceA = compilation.GlobalNamespace.GetMember<NamespaceSymbol>("A"); 467var namespaceA = compilation.GlobalNamespace.GetMember<NamespaceSymbol>("A"); 485var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Class");
Symbols\Metadata\MetadataTypeTests.cs (1)
514var stateMachineClass = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers().OfType<NamedTypeSymbol>().Single();
Symbols\Metadata\PE\DynamicTransformsTests.cs (5)
403var classA = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 404var classB = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B"); 557var classDerived = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 561var classDerived2 = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived2"); 565var classB = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("B");
Symbols\Metadata\PE\LoadingEvents.cs (3)
470var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 524var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 584var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
Symbols\Metadata\PE\LoadingIndexers.cs (16)
63var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 105var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 147var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 197var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 247var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 310var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 352var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 394var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 611var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>(className); 707var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 786var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 842var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 915var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 1005var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); 1171var @interface = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("I"); 1175var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C");
Symbols\Metadata\PE\LoadingMetadataTokens.cs (2)
107var class1 = compilation.GlobalNamespace.GetTypeMember("C"); 131var struct1 = compilation.GlobalNamespace.GetTypeMember("S");
Symbols\Metadata\PE\LoadingMethods.cs (2)
960var derivedClass = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("Derived"); 1350var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Test");
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (5)
312var structType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S"); 331var structType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S"); 356var structType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S"); 388var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 405var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (21)
52NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 72NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 91NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 115NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 133NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 162NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 180NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 199NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 218NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 237NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 256NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 275NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 294NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 313NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 332NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 351NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 368NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 388NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 409NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 439NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("DrivedClass").Single(); 466NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("Interface1Impl2").Single();
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (6)
98NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("LocalType1").Single(); 135NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single(); 195NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single(); 231NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single(); 266NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single(); 299NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single();
Symbols\Metadata\PE\TypeForwarders.cs (3)
191var derivedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 436var derivedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 1232return EnumerateNamespaces(compilation.GlobalNamespace, "");
Symbols\MethodEqualityTests.cs (4)
34var global = comp.GlobalNamespace; 81var global = comp.GlobalNamespace; 141var global = comp.GlobalNamespace; 200var global = comp.GlobalNamespace;
Symbols\OverriddenOrHiddenMembersTests.cs (73)
76var global = comp.GlobalNamespace; 163var global = comp.GlobalNamespace; 243var global = comp.GlobalNamespace; 334var global = comp.GlobalNamespace; 415var global = comp.GlobalNamespace; 466var global = comp.GlobalNamespace; 526var global = comp.GlobalNamespace; 602var global = comp.GlobalNamespace; 603var system = comp.GlobalNamespace.GetNestedNamespace("System"); 664var global = comp.GlobalNamespace; 744var global = comp.GlobalNamespace; 898var global = comp.GlobalNamespace; 1000var global = comp.GlobalNamespace; 1069var global = comp.GlobalNamespace; 1915var global = comp.GlobalNamespace; 1943var global = comp.GlobalNamespace; 1971var global = comp.GlobalNamespace; 2002var global = comp.GlobalNamespace; 2031var global = comp.GlobalNamespace; 2098var global = comp.GlobalNamespace; 2433var global = comp.GlobalNamespace; 2492var global = comp.GlobalNamespace; 2557var global = comp.GlobalNamespace; 2616var global = comp.GlobalNamespace; 2910comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 2912comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 2913comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 2915comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 2916comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 2917comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P"), 2958comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 2960comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 2961comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 2963comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 2964comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 2965comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P"), 3006comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3008comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3009comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3011comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3012comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3013comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P"), 3053comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3055comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3056comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3058comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3059comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3060comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P"), 3100comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3102comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3103comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3105comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3106comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3107comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P"), 3147comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3149comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3150comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3152comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3153comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3154comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P"), 3221comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3223comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3224comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3226comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<PropertySymbol>("P"), 3227comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<PropertySymbol>("P"), 3228comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P"), 3274comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<EventSymbol>("E"), 3276comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<EventSymbol>("E"), 3277comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<EventSymbol>("E"), 3279comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<EventSymbol>("E"), 3280comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("B").GetMember<EventSymbol>("E"), 3281comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<EventSymbol>("E"), 3583var global = comp.GlobalNamespace;
Symbols\RequiredMembersTests.cs (1)
6264var c = comp.GlobalNamespace.GetTypeMember("C");
Symbols\Retargeting\RetargetCustomAttributes.cs (8)
199var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 208var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 218var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 232var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 242var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 254var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 266var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 301var c = c2.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
Symbols\Retargeting\RetargetCustomModifiers.cs (2)
43var modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single(); 161var modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single();
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (4)
56var globalNamespace1 = comp1.GlobalNamespace; 122var globalNamespace2 = comp2.GlobalNamespace; 352var globalNamespace1 = comp1.GlobalNamespace; 386var globalNamespace2 = comp2.GlobalNamespace;
Symbols\Retargeting\RetargetingTests.cs (1)
737NamedTypeSymbol c1r = comp2.GlobalNamespace.GetTypeMembers("C1").Single();
Symbols\Source\AccessTests.cs (4)
29var global = comp.GlobalNamespace; 46var global = comp.GlobalNamespace; 72var global = comp.GlobalNamespace; 95var global = comp.GlobalNamespace;
Symbols\Source\BaseClassTests.cs (41)
35var global = comp.GlobalNamespace; 55var global = comp.GlobalNamespace; 78var global = comp.GlobalNamespace; 102var global = comp.GlobalNamespace; 131var global = comp.GlobalNamespace; 157var global = comp.GlobalNamespace; 180var global = comp.GlobalNamespace; 233var global = comp.GlobalNamespace; 262var global = comp.GlobalNamespace; 299var global = comp.GlobalNamespace; 462var global = comp.GlobalNamespace; 480var global = comp.GlobalNamespace; 498var global = comp.GlobalNamespace; 518var global = comp.GlobalNamespace; 532var global = comp.GlobalNamespace; 547var global = comp.GlobalNamespace; 565var global = comp.GlobalNamespace; 585var global = comp.GlobalNamespace; 604var global = comp.GlobalNamespace; 624var global = comp.GlobalNamespace; 649var global = comp.GlobalNamespace; 668var global = comp.GlobalNamespace; 685var global = comp.GlobalNamespace; 994var global = comp.GlobalNamespace; 1015var global1 = comp.GlobalNamespace; 1033var global = comp2.GlobalNamespace; 1071var global1 = comp.GlobalNamespace; 1093var global = comp2.GlobalNamespace; 1129var global1 = comp.GlobalNamespace; 1162var global = comp2.GlobalNamespace; 1187var global1 = comp.GlobalNamespace; 1219var global = comp2.GlobalNamespace; 1253var global = comp.GlobalNamespace; 1278var global = comp.GlobalNamespace; 1300var global = comp.GlobalNamespace; 1319var global = comp.GlobalNamespace; 1335var global = comp.GlobalNamespace; 1379var global = comp.GlobalNamespace; 1411var global = comp.GlobalNamespace; 1561var global = comp.GlobalNamespace; 1897var derived = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived");
Symbols\Source\ClsComplianceTests.cs (2)
2113var accessor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P").GetMethod; 3323var @event = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<EventSymbol>("E");
Symbols\Source\CompletionTests.cs (2)
33var global = comp.GlobalNamespace; 73var global = comp.GlobalNamespace;
Symbols\Source\CustomModifierCopyTests.cs (44)
50var global = comp.GlobalNamespace; 93var global = comp.GlobalNamespace; 144var global = comp.GlobalNamespace; 193var global = comp.GlobalNamespace; 255var global = comp.GlobalNamespace; 320var global = comp.GlobalNamespace; 356var global = comp.GlobalNamespace; 410var global = comp.GlobalNamespace; 519var global = comp.GlobalNamespace; 588var global = comp.GlobalNamespace; 637var global = comp.GlobalNamespace; 691var global = comp.GlobalNamespace; 724var global = comp.GlobalNamespace; 765var global = comp.GlobalNamespace; 808var global = comp.GlobalNamespace; 917var global = comp.GlobalNamespace; 961var global = comp.GlobalNamespace; 1005var interfaceMethod1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("I.M"); 1006var classMethod1 = comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMethod("I.M"); 1041var classMethod2 = comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMethod("I.M"); 1065var classMethod3 = comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMethod("I.M"); 1082var classMethod4 = comp4.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMethod("M"); 1135var interfaceProperty1 = comp1.GlobalNamespace.GetMember<PropertySymbol>("I.P"); 1136var classProperty1 = comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("I.P"); 1159var classProperty2 = comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("I.P"); 1173var classProperty3 = comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("P"); 1282var baseMethod1 = comp1.GlobalNamespace.GetMember<MethodSymbol>("Base.M"); 1294var baseProperty1 = comp1.GlobalNamespace.GetMember<PropertySymbol>("Base.P"); 1300var classProperty1 = comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("P"); 1301var classMethod1 = comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMethod("M"); 1327var classProperty2 = comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("P"); 1328var classMethod2 = comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMethod("M"); 1355var classMethod3 = comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMethod("M"); 1398var global = comp.GlobalNamespace; 1438var global = comp.GlobalNamespace; 1483var global = comp.GlobalNamespace; 1527var global = comp.GlobalNamespace; 1582var global = comp.GlobalNamespace; 1636var global = comp.GlobalNamespace; 1686var global = comp.GlobalNamespace; 1771var global = comp.GlobalNamespace; 1888var global = comp.GlobalNamespace; 1985var global = comp.GlobalNamespace; 2087var global = comp.GlobalNamespace;
Symbols\Source\DeclaringSyntaxNodeTests.cs (7)
189var global = comp.GlobalNamespace; 233var global = comp.GlobalNamespace; 260var global = comp.GlobalNamespace; 303var global = comp.GlobalNamespace; 408var global = comp.GlobalNamespace; 448var global = comp.GlobalNamespace; 515var global = comp.GlobalNamespace;
Symbols\Source\DelegateTests.cs (8)
71var global = comp.GlobalNamespace; 91var global = comp.GlobalNamespace; 106var global = comp.GlobalNamespace; 127var v = comp.GlobalNamespace.GetTypeMembers("MyDel", 0).Single(); 155var global = comp.GlobalNamespace; 202var namespaceNS = comp.GlobalNamespace.GetMembers("NS").First() as NamespaceOrTypeSymbol; 779var global = comp.GlobalNamespace; 796var global = comp.GlobalNamespace;
Symbols\Source\EnumTests.cs (1)
1029Symbol currentSymbol = compilation.GlobalNamespace;
Symbols\Source\EventTests.cs (11)
78var global = comp.GlobalNamespace; 117var global = comp.GlobalNamespace; 155var global = comp.GlobalNamespace; 190var global = comp.GlobalNamespace; 1862var @class = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Base"); 2258var global = comp.GlobalNamespace; 2340var derived1 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived1"); 2345var derived2 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived2"); 2386var derived1 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived1"); 2391var derived2 = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived2"); 2413var typeA = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A");
Symbols\Source\ExpressionBodiedMethodTests.cs (2)
201var global = comp.GlobalNamespace; 279var global = comp.GlobalNamespace;
Symbols\Source\ExpressionBodiedPropertyTests.cs (6)
256var global = comp.GlobalNamespace; 384var global = comp.GlobalNamespace; 503var global = comp.GlobalNamespace; 526var global = comp.GlobalNamespace; 553var global = comp.GlobalNamespace; 581var global = comp.GlobalNamespace;
Symbols\Source\FieldTests.cs (8)
61var global = comp.GlobalNamespace; 89var global = comp.GlobalNamespace; 118var global = comp.GlobalNamespace; 142var global = comp.GlobalNamespace; 176var global = comp.GlobalNamespace; 200var type1 = comp.GlobalNamespace.GetTypeMembers("C", 1).Single(); 496var global = comp.GlobalNamespace; 516var global = comp.GlobalNamespace;
Symbols\Source\LocationTests.cs (1)
27var global = comp.GlobalNamespace;
Symbols\Source\MethodTests.cs (45)
34var global = comp.GlobalNamespace; 69var global = comp.GlobalNamespace; 114var global = comp.GlobalNamespace; 139var global = comp.GlobalNamespace; 166var global = comp.GlobalNamespace; 188var global = comp.GlobalNamespace; 210var global = comp.GlobalNamespace; 229var global = comp.GlobalNamespace; 257var global = comp.GlobalNamespace; 282var global = comp.GlobalNamespace; 303var global = comp.GlobalNamespace; 325var global = comp.GlobalNamespace; 341var global = comp.GlobalNamespace; 358var global = comp.GlobalNamespace; 402var global = comp.GlobalNamespace; 426var classTest = comp.GlobalNamespace.GetTypeMembers("Test", 0).Single(); 445var classTest = comp.GlobalNamespace.GetTypeMembers("Test", 0).Single(); 510var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 586var ns = comp.GlobalNamespace.GetMembers("N1").Single() as NamespaceSymbol; 779var ns = comp.GlobalNamespace.GetMembers("N1").Single() as NamespaceSymbol; 958var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1068var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1165var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1259var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1354var classB = (NamedTypeSymbol)comp.GlobalNamespace.GetMembers("B").Single(); 1372var classC = (NamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").Single(); 1409var c = comp.GlobalNamespace.GetTypeMembers("C").Single(); 1464var ns = comp.GlobalNamespace.GetMembers("N2").Single() as NamespaceSymbol; 1502var n2 = comp.GlobalNamespace.GetMembers("N2").Single() as NamespaceSymbol; 1566var test = comp.GlobalNamespace.GetTypeMembers("Test").Single() as NamedTypeSymbol; 1594var a = comp.GlobalNamespace.GetTypeMembers("A").Single() as NamedTypeSymbol; 1595var b = comp.GlobalNamespace.GetTypeMembers("B").Single() as NamedTypeSymbol; 1664var globalNamespace = comp.GlobalNamespace; 1707var globalNamespace = comp.GlobalNamespace; 1753var globalNamespace = comp.GlobalNamespace; 1803var globalNamespace = comp.GlobalNamespace; 1856var @class = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("C").Single(); 1902var staticConstructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.StaticConstructorName); 1926var staticConstructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.StaticConstructorName); 1957var globalNamespace = comp.GlobalNamespace; 2001var globalNamespace = comp.GlobalNamespace; 2066var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.UnaryPlusOperatorName).Single(); 2087var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.ExplicitConversionName).Single(); 2130var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 2155var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
Symbols\Source\ModifierTests.cs (2)
48var global = comp.GlobalNamespace; 155var structType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S");
Symbols\Source\NamedTypeTests.cs (14)
27var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 36var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 45var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 57var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 69var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 81var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 93var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 105var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 119var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 133var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 147var namedType = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 165var namedType = compilation.GlobalNamespace.GetMember<NamespaceSymbol>("N").GetMember<NamedTypeSymbol>("C"); 183var namedType = compilation.GlobalNamespace.GetMember<NamespaceSymbol>("N").GetMember<NamedTypeSymbol>("C"); 201var namedType = compilation.GlobalNamespace.GetMember<NamespaceSymbol>("N").GetMember<NamedTypeSymbol>("C");
Symbols\Source\PropertyTests.cs (11)
181var global = comp.GlobalNamespace; 242var global = comp.GlobalNamespace; 358var global = comp.GlobalNamespace; 391var global = comp.GlobalNamespace; 628var type = (PENamedTypeSymbol)compilation.GlobalNamespace.GetMembers("NoAccessors").Single(); 712var type = (PENamedTypeSymbol)verifier.Compilation.GlobalNamespace.GetMembers("Signatures").Single().GetSymbol(); 790var type = (PENamedTypeSymbol)compilation.GlobalNamespace.GetMembers("FamilyAssembly").Single(); 1747var globalNamespace = comp.GlobalNamespace; 1781var globalNamespace = comp.GlobalNamespace; 1818var globalNamespace = comp.GlobalNamespace; 1923var global = comp.GlobalNamespace;
Symbols\Source\RecordTests.cs (16)
31var c = comp.GlobalNamespace.GetTypeMember("C"); 49var c = comp.GlobalNamespace.GetTypeMember("C"); 83var c = comp.GlobalNamespace.GetTypeMember("C"); 112var c = comp.GlobalNamespace.GetTypeMember("C"); 149var c = comp.GlobalNamespace.GetTypeMember("C"); 742var c = comp.GlobalNamespace.GetTypeMember("C"); 795var c = comp.GlobalNamespace.GetTypeMember("C"); 892var c = comp.GlobalNamespace.GetTypeMember("C"); 1075var members = comp.GlobalNamespace.GetTypeMember("C").GetMembers(); 1429var r = comp.GlobalNamespace.GetTypeMember("R"); 1437var r2 = comp.GlobalNamespace.GetTypeMember("R2"); 1472var r = comp.GlobalNamespace.GetTypeMember("R"); 1482var r2 = comp.GlobalNamespace.GetTypeMember("R2"); 1493var r3 = comp.GlobalNamespace.GetTypeMember("R3"); 1504var r4 = comp.GlobalNamespace.GetTypeMember("R4"); 1515var r5 = comp.GlobalNamespace.GetTypeMember("R5");
Symbols\Source\SourcePlusMetadataTests.cs (12)
27var global = comp.GlobalNamespace; 44var global = comp.GlobalNamespace; 60var global = comp.GlobalNamespace; 81var global = comp.GlobalNamespace; 138var ns = (NamespaceSymbol)compilation.GlobalNamespace.GetMembers("NS").Single(); 188var srcSym = compilation.GlobalNamespace.GetTypeMembers("BaseTypeSpecifierClass").Single(); 192var metaSym = comp2.GlobalNamespace.GetTypeMembers("BaseTypeSpecifierClass").First(); 204var srcSym = compilation.GlobalNamespace.GetTypeMembers("FooAttribute").Single(); 208var metaSym = comp2.GlobalNamespace.GetTypeMembers("FooAttribute").First(); 231var classC = compilation.GlobalNamespace.GetTypeMembers("Test").Single(); 236var metaType = comp2.GlobalNamespace.GetTypeMembers("Test").Single(); 250var global = comp.GlobalNamespace;
Symbols\Source\TypeMapTests.cs (2)
54var global = comp.GlobalNamespace; 113var global = comp.GlobalNamespace;
Symbols\StaticAbstractMembersInInterfacesTests.cs (206)
15785var m01 = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<MethodSymbol>().Single(); 15787Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 15788Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 15789Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 15790Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 15792var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 15795Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 15796Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 15865var m01 = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<MethodSymbol>().Single(); 15867Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 15868Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 15869Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 15870Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 15872var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 15875Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 15877var i8 = compilation1.GlobalNamespace.GetTypeMember("I8"); 16299var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 16307var c2 = compilation1.GlobalNamespace.GetTypeMember("C2"); 16310var c3 = compilation1.GlobalNamespace.GetTypeMember("C3"); 16313var c4 = compilation1.GlobalNamespace.GetTypeMember("C4"); 16316var c5 = compilation1.GlobalNamespace.GetTypeMember("C5"); 16360var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 16391c1 = compilation2.GlobalNamespace.GetTypeMember("C1"); 16437var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 16841Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count()); 16923Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count()); 17005Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count()); 17075Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count()); 17150Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count()); 17237Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count()); 17327Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count()); 17433Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count()); 18174var m01 = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<MethodSymbol>().Single(); 18176Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18177Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18178Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18179Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18181var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 18184Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18186var i8 = compilation1.GlobalNamespace.GetTypeMember("I8"); 18189var i9 = compilation1.GlobalNamespace.GetTypeMember("I9"); 18192var i10 = compilation1.GlobalNamespace.GetTypeMember("I10"); 18195var i12 = compilation1.GlobalNamespace.GetTypeMember("I12"); 18198var i13 = compilation1.GlobalNamespace.GetTypeMember("I13"); 18201Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 18327var m01 = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<MethodSymbol>().Single(); 18329Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18330Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18331Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18332Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18334var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 18337Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18341var iX = compilation1.GlobalNamespace.GetTypeMember(name); 18348var iX = compilation1.GlobalNamespace.GetTypeMember(name); 18353var i14 = compilation1.GlobalNamespace.GetTypeMember("I14"); 18513var m01 = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<MethodSymbol>().Single(); 18515Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18516Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18517Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18518Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18520var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 18523Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18525var i8 = compilation1.GlobalNamespace.GetTypeMember("I8"); 18528var i9 = compilation1.GlobalNamespace.GetTypeMember("I9"); 18531var i10 = compilation1.GlobalNamespace.GetTypeMember("I10"); 18534var i12 = compilation1.GlobalNamespace.GetTypeMember("I12"); 18537var i13 = compilation1.GlobalNamespace.GetTypeMember("I13"); 18540Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I14").FindImplementationForInterfaceMember(m01)); 18705var m01 = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<MethodSymbol>().Single(); 18707Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 18708Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 18709Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 18710Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 18712var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 18715Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 18719var iX = compilation1.GlobalNamespace.GetTypeMember(name); 18726var iX = compilation1.GlobalNamespace.GetTypeMember(name); 18731var i14 = compilation1.GlobalNamespace.GetTypeMember("I14"); 20276var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 20288var c2 = compilation1.GlobalNamespace.GetTypeMember("C2"); 20291var c3 = compilation1.GlobalNamespace.GetTypeMember("C3"); 20294var c4 = compilation1.GlobalNamespace.GetTypeMember("C4"); 20297var c5 = compilation1.GlobalNamespace.GetTypeMember("C5"); 20411var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 20423var c2 = compilation1.GlobalNamespace.GetTypeMember("C2"); 20426var c3 = compilation1.GlobalNamespace.GetTypeMember("C3"); 20429var c4 = compilation1.GlobalNamespace.GetTypeMember("C4"); 20432var c5 = compilation1.GlobalNamespace.GetTypeMember("C5"); 20489var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 20521c1 = compilation2.GlobalNamespace.GetTypeMember("C1"); 20569var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 20601c1 = compilation2.GlobalNamespace.GetTypeMember("C1"); 20659var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 20724var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 21680Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count()); 21789Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count()); 21891Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count()); 22046var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 22196var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 22615foreach (var m01 in compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers()) 22617Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 22618Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 22619Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 22620Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 22621Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 22622Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 22625var m = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<PropertySymbol>().Single(); 22626var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 22699foreach (var m01 in compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers()) 22706Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 22707Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 22708Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 22709Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 22710Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 22713var m = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<PropertySymbol>().Single(); 22717var i6 = compilation1.GlobalNamespace.GetTypeMember(name); 23380var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 23393var c2 = compilation1.GlobalNamespace.GetTypeMember("C2"); 23398var c3 = compilation1.GlobalNamespace.GetTypeMember("C3"); 23403var c4 = compilation1.GlobalNamespace.GetTypeMember("C4"); 23408var c5 = compilation1.GlobalNamespace.GetTypeMember("C5"); 23481var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 23523c1 = compilation2.GlobalNamespace.GetTypeMember("C1"); 23615var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 23785c1 = compilation4.GlobalNamespace.GetTypeMember("C1"); 23878c1 = compilation6.GlobalNamespace.GetTypeMember("C1"); 23911c1 = compilation7.GlobalNamespace.GetTypeMember("C1"); 23967var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 24137c1 = compilation4.GlobalNamespace.GetTypeMember("C1"); 24230c1 = compilation6.GlobalNamespace.GetTypeMember("C1"); 24263c1 = compilation7.GlobalNamespace.GetTypeMember("C1"); 24344var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 25001Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().OfType<PropertySymbol>().Where(m => m.Name.Contains("M01")).Count()); 25071Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().OfType<PropertySymbol>().Where(m => m.Name.Contains("M01")).Count()); 25394foreach (var m01 in compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers()) 25396Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 25397Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 25398Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 25399Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 25401Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 25402Assert.Null(compilation1.GlobalNamespace.GetTypeMember("I8").FindImplementationForInterfaceMember(m01)); 25405var m = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<EventSymbol>().Single(); 25406var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 25482foreach (var m01 in compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers()) 25484Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I2").FindImplementationForInterfaceMember(m01)); 25485Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I3").FindImplementationForInterfaceMember(m01)); 25486Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I4").FindImplementationForInterfaceMember(m01)); 25487Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I5").FindImplementationForInterfaceMember(m01)); 25488Assert.Same(m01, compilation1.GlobalNamespace.GetTypeMember("I7").FindImplementationForInterfaceMember(m01)); 25491var m = compilation1.GlobalNamespace.GetTypeMember("I1").GetMembers().OfType<EventSymbol>().Single(); 25495var i6 = compilation1.GlobalNamespace.GetTypeMember(name); 26072var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 26085var c2 = compilation1.GlobalNamespace.GetTypeMember("C2"); 26090var c3 = compilation1.GlobalNamespace.GetTypeMember("C3"); 26095var c4 = compilation1.GlobalNamespace.GetTypeMember("C4"); 26100var c5 = compilation1.GlobalNamespace.GetTypeMember("C5"); 26174var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 26212c1 = compilation2.GlobalNamespace.GetTypeMember("C1"); 26297var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 26326c1 = compilation2.GlobalNamespace.GetTypeMember("C1"); 26424c1 = compilation4.GlobalNamespace.GetTypeMember("C1"); 26454c1 = compilation5.GlobalNamespace.GetTypeMember("C1"); 26484c1 = compilation6.GlobalNamespace.GetTypeMember("C1"); 26514c1 = compilation7.GlobalNamespace.GetTypeMember("C1"); 26571var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 26600c1 = compilation2.GlobalNamespace.GetTypeMember("C1"); 26698c1 = compilation4.GlobalNamespace.GetTypeMember("C1"); 26728c1 = compilation5.GlobalNamespace.GetTypeMember("C1"); 26758c1 = compilation6.GlobalNamespace.GetTypeMember("C1"); 26788c1 = compilation7.GlobalNamespace.GetTypeMember("C1"); 26872var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 27667Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().OfType<EventSymbol>().Where(m => m.Name.Contains("M01")).Count()); 27737Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().OfType<EventSymbol>().Where(m => m.Name.Contains("M01")).Count()); 28183var i2 = compilation1.GlobalNamespace.GetTypeMember("I2"); 28186var i3 = compilation1.GlobalNamespace.GetTypeMember("I3"); 28189var i4 = compilation1.GlobalNamespace.GetTypeMember("I4"); 28192var i5 = compilation1.GlobalNamespace.GetTypeMember("I5"); 28195var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 28198var i7 = compilation1.GlobalNamespace.GetTypeMember("I7"); 28201var i8 = compilation1.GlobalNamespace.GetTypeMember("I8"); 28204var i9 = compilation1.GlobalNamespace.GetTypeMember("I9"); 28207var i10 = compilation1.GlobalNamespace.GetTypeMember("I10"); 28210var i12 = compilation1.GlobalNamespace.GetTypeMember("I12"); 28213var i13 = compilation1.GlobalNamespace.GetTypeMember("I13"); 28216var i14 = compilation1.GlobalNamespace.GetTypeMember("I14"); 28346var i2 = compilation1.GlobalNamespace.GetTypeMember("I2"); 28350var i3 = compilation1.GlobalNamespace.GetTypeMember("I3"); 28354var i4 = compilation1.GlobalNamespace.GetTypeMember("I4"); 28358var i5 = compilation1.GlobalNamespace.GetTypeMember("I5"); 28362var i6 = compilation1.GlobalNamespace.GetTypeMember("I6"); 28365var i7 = compilation1.GlobalNamespace.GetTypeMember("I7"); 28371var iX = compilation1.GlobalNamespace.GetTypeMember(name); 28378var iX = compilation1.GlobalNamespace.GetTypeMember(name); 28383var i14 = compilation1.GlobalNamespace.GetTypeMember("I14"); 29015var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 29027var c2 = compilation1.GlobalNamespace.GetTypeMember("C2"); 29030var c3 = compilation1.GlobalNamespace.GetTypeMember("C3"); 29033var c4 = compilation1.GlobalNamespace.GetTypeMember("C4"); 29036var c5 = compilation1.GlobalNamespace.GetTypeMember("C5"); 29094var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 29126c1 = compilation2.GlobalNamespace.GetTypeMember("C1"); 29188var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 29615Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count()); 29721Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count()); 29858var c1 = compilation1.GlobalNamespace.GetTypeMember("C1"); 31789var d = compilation1.GlobalNamespace.GetTypeMember("Derived");
Symbols\SymbolErrorTests.cs (9)
4925var indexer = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetProperty("IA." + WellKnownMemberNames.Indexer); 10241var classA = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 10295var classA = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A"); 16890var classA = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("A").Single(); 16915var classA = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("A").Single(); 16916var classC = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("C").Single(); 16950var classA = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("A").Single(); 16951var ns1 = (NamespaceSymbol)comp.GlobalNamespace.GetMembers("N1").Single(); 16952var ns2 = (NamespaceSymbol)comp.GlobalNamespace.GetMembers("N2").Single();
Symbols\TypedConstantTests.cs (1)
32_namedType = _compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
Symbols\TypeTests.cs (26)
40var c = compilation.GlobalNamespace.GetTypeMembers("C")[0]; 62var aint1 = compilation.GlobalNamespace.GetTypeMembers("A1")[0].BaseType(); // A<int> 63var aint2 = compilation.GlobalNamespace.GetTypeMembers("A2")[0].BaseType(); // A<int> 86var global = comp.GlobalNamespace; 125var global = comp.GlobalNamespace; 204var global = comp.GlobalNamespace; 272var global = comp.GlobalNamespace; 347var global = comp.GlobalNamespace; 466var classTest = comp.GlobalNamespace.GetTypeMembers("Test", 0).Single(); 620var global = CreateCompilation(text).GlobalNamespace; 669var v = comp.GlobalNamespace.GetTypeMembers("MyEnum", 0).Single(); 850var namespaceNS = comp.GlobalNamespace.GetMembers("NS").First() as NamespaceOrTypeSymbol; 1036var global = comp.GlobalNamespace; 1061var global = comp.GlobalNamespace; 1079var global = comp.GlobalNamespace; 1101var global = comp.GlobalNamespace; 1119var global = comp.GlobalNamespace; 1180var global = comp.GlobalNamespace; 1199var global = comp.GlobalNamespace; 1420var globalNS = compilation.GlobalNamespace; 1477var namespaceNS = comp.GlobalNamespace.GetMembers("NS").First() as NamespaceOrTypeSymbol; 1804var Goo = compilation.GlobalNamespace.GetTypeMembers("Goo")[0]; 1831var originalDefinition = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 1858var originalDefinition = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C"); 2450var outerNamespace = comp.GlobalNamespace.GetNestedNamespace("N"); 2616var outerNamespace = comp.GlobalNamespace.GetNestedNamespace("N");
Symbols\TypeUnificationTests.cs (7)
47var global = comp.GlobalNamespace; 131var global = comp.GlobalNamespace; 204var global = comp.GlobalNamespace; 246var global = comp.GlobalNamespace; 297var global = comp.GlobalNamespace; 334var global = comp.GlobalNamespace; 367var global = comp.GlobalNamespace;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
111var args = new object[] { comp.GlobalNamespace }; 112var symbol = (Symbol)comp.GlobalNamespace;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
CompilingTestBase.cs (1)
26var method = (MethodSymbol)compilation.GlobalNamespace.GetTypeMembers(typeName).Single().GetMembers(methodName).Single();
Extensions.cs (5)
166=> compilation.GlobalNamespace.GetMember(qualifiedName); 169=> compilation.GlobalNamespace.GetMember(qualifiedName); 172=> (T)compilation.GlobalNamespace.GetMember(qualifiedName); 175=> (T)compilation.GlobalNamespace.GetMember(qualifiedName); 225var members = GetMembers(((CSharpCompilation)compilation).GlobalNamespace, qualifiedName, out lastContainer);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (17)
Metadata\WinMdEventTests.cs (17)
2750var ns1 = comp.GlobalNamespace.GetMember<NamespaceSymbol>("Windows"); 2842var interfaceType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Interface"); 2853var implementingType = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 2917var @class = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 2921var @interface = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("I"); 2961var @class = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 3037var overrideNoImplClass = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("OverrideNoImpl"); 3046var overrideAndImplCorrectlyClass = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("OverrideAndImplCorrectly"); 3055var overrideAndImplIncorrectlyClass = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("OverrideAndImplIncorrectly"); 3096var @class = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 3171var @class = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 3198var @class = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 3259var derivedClass = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("Derived"); 3294var @class = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 3343var @class = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 3501var type = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("Events"); 3559var type = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (33)
CodeGeneration\SymbolEditorTests.cs (6)
51return compilation.GlobalNamespace.GetMembers(name); 193var symbolA = comp.GlobalNamespace.GetMembers("A").First(); 194var symbolB = comp.GlobalNamespace.GetMembers("B").First(); 239var symbolA = comp.GlobalNamespace.GetMembers("A").First(); 240var symbolB = comp.GlobalNamespace.GetMembers("B").First(); 317var symbol = comp.GlobalNamespace.GetMembers("C").First();
CodeGeneration\SyntaxGeneratorTests.cs (27)
233var typeC = compilation.GlobalNamespace.GetMembers("C").First() as INamedTypeSymbol; 1669var symbol = compilation.GlobalNamespace.GetMembers("I").Single(); 3782var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 3963var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 3981var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4002var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4020var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4038var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4056var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4074var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4092var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4110var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4129var symbolC = comp.GlobalNamespace.GetMembers("C").First(); 4276var symbolC = comp.GlobalNamespace.GetMembers("C").First(); 4306var symbolC = comp.GlobalNamespace.GetMembers("C").First(); 4398var symbolC = comp.GlobalNamespace.GetMembers("C").First(); 4595var symbolR = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("R").First(); 4610var symbolR = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("R").First(); 4633var symbolR = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("R").First(); 4648var symbolR = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("R").First(); 4671var symbol = comp.GlobalNamespace.GetMembers("C").First(); 4691var symbol = comp.GlobalNamespace.GetMembers("C").First().GetMembers("M").First(); 4709var symbol = comp.GlobalNamespace.GetMembers("C").First().GetMembers("X").First(); 4726var symbol = comp.GlobalNamespace.GetMembers("C").First().GetMembers("MyEvent").First(); 4751var symbol = comp.GlobalNamespace.GetMembers("C2").First().GetMembers("MyEvent").First(); 4910var symbol = compilation.GlobalNamespace.GetMembers("S").Single(); 4966var symbol = compilation.GlobalNamespace.GetMembers("C").Single();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (96)
Utilities\SymbolEquivalenceComparerTests.cs (96)
52var type = (ITypeSymbol)(await workspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 124var csharpType = (ITypeSymbol)(await csharpWorkspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 125var vbType = (await vbWorkspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 194var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 195var type2_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 196var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 197var type2_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 245var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 246var type2_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 247var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 248var type2_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 284var typeC = (await workspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 285var typeD = (await workspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("D").Single(); 328var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 329var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 353var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 354var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 378var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 379var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 403var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 404var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 428var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 429var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 455var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 456var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 482var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 483var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 509var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 510var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 534var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 535var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 559var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 560var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 586var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 587var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 620var csharpType1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 621var vbType1 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 665var csharpType1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 666var vbType1 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 696var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 722var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 723var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 757var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 758var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 790var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 791var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 825var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 826var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 856var outer1 = (INamespaceSymbol)(await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetMembers("Outer").Single(); 857var outer2 = (INamespaceSymbol)(await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetMembers("Outer").Single(); 933var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 934var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 935var type2_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 936var type2_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 970var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 971var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 995var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 996var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1020var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1021var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1051var outer = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Outer").Single(); 1052var other = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Other").Single(); 1081var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1082var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1112var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1113var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1152var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1153var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1182var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1183var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1212var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1213var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1243var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1244var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1274var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1275var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1306var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1307var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1343var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1344var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1407var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1408var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1470var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1471var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1533var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1534var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1718var namespace1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetNamespaceMembers().Single(n => n.Name == "N").GetNamespaceMembers().Single(n => n.Name == "M"); 1719var namespace2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetNamespaceMembers().Single(n => n.Name == "N").GetNamespaceMembers().Single(n => n.Name == "M"); 1746var ta1 = (ITypeSymbol)a1.GlobalNamespace.GetMembers("T").Single(); 1747var ta2 = (ITypeSymbol)a2.GlobalNamespace.GetMembers("T").Single(); 1748var tb1 = (ITypeSymbol)b1.GlobalNamespace.GetMembers("T").Single(); 1749var tb2 = (ITypeSymbol)b2.GlobalNamespace.GetMembers("T").Single(); 1750var tb3 = (ITypeSymbol)b3.GlobalNamespace.GetMembers("T").Single(); 1835var type1 = (ITypeSymbol)c1.GlobalNamespace.GetMembers("C").Single(); 1836var type2 = (ITypeSymbol)c2.GlobalNamespace.GetMembers("C").Single(); 1887var type1 = compilation.GlobalNamespace.GetTypeMembers(typeName).Single();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
Workspaces\TryFindSourceDefinitionTests.vb (5)
142Dim member = compilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single().GetMembers("M").Single() 179Dim member = compilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single().GetMembers("M").Single() 216Dim member = compilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single().GetMembers("M").Single() 250Dim originalClass = retargetedCompilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single() 252Dim retargetedClass = retargetingCompilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single()
Microsoft.CodeAnalysis.Features (3)
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
310return compilation.GlobalNamespace.GetAllNamespaces(cancellationToken)
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
92INamespaceOrTypeSymbol containingSymbol = _compilation.GlobalNamespace; 576INamespaceOrTypeSymbol containingSymbol = _compilation.GlobalNamespace;
Microsoft.CodeAnalysis.Features.UnitTests (1)
FindUsages\DefinitionItemFactoryTests.cs (1)
479var symbol = compilation.GlobalNamespace;
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1150foreach (var type in context.Compilation.GlobalNamespace.GetTypeMembers())
Microsoft.CodeAnalysis.UnitTests (7)
GivesAccessTo.cs (4)
45var CS = csc.GlobalNamespace.GetMembers("CS").First() as INamedTypeSymbol; 48var CS2 = csc2.GlobalNamespace.GetMembers("CS2").First() as INamedTypeSymbol; 51var VB = vbc.GlobalNamespace.GetMembers("VB")[0] as INamedTypeSymbol; 54var VB2 = vbc2.GlobalNamespace.GetMembers("VB2")[0] as INamedTypeSymbol;
IsSymbolAccessibleWithinTests.cs (2)
29var Ac = csc.GlobalNamespace.GetMembers("A").First() as INamedTypeSymbol; 32var Av = vbc.GlobalNamespace.GetMembers("A").First() as INamedTypeSymbol;
MetadataReferences\MetadataReferenceTests.cs (1)
575var c = (ITypeSymbol)comp.GlobalNamespace.GetMembers("C").Single();
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (17)
Attributes\AttributeTests_MarshalAs.vb (2)
27For Each typeSym As NamedTypeSymbol In c.GlobalNamespace.GetMembers().Where(Function(s) s.Kind = SymbolKind.NamedType) 49For Each typeSym As NamedTypeSymbol In c.GlobalNamespace.GetMembers().Where(Function(s) s.Kind = SymbolKind.NamedType)
Attributes\AttributeTests_Synthesized.vb (1)
69Dim pid = DirectCast(comp.GlobalNamespace.GetMembers().Single(Function(s) s.Name.StartsWith("<PrivateImplementationDetails>", StringComparison.Ordinal)), NamedTypeSymbol)
CodeGen\CodeGenSelectCase.vb (1)
3368Dim pid = DirectCast(comp.GlobalNamespace.GetMembers().Single(Function(s) s.Name.StartsWith("<PrivateImplementationDetails>", StringComparison.Ordinal)), NamedTypeSymbol)
CodeGen\CodeGenTuples.vb (7)
8948Dim ns = comp.CreateErrorNamespaceSymbol(comp.GlobalNamespace, "a") 8952Assert.Same(comp.GlobalNamespace, ns.ContainingSymbol) 8953Assert.Same(comp.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly) 8954Assert.Same(comp.GlobalNamespace.ContainingModule, ns.ContainingModule) 8972ns = comp.CreateErrorNamespaceSymbol(comp.CreateErrorNamespaceSymbol(comp.GlobalNamespace, "a"), "b") 8975ns = comp.CreateErrorNamespaceSymbol(comp.GlobalNamespace, "") 8979vt2 = comp.CreateErrorTypeSymbol(comp.CreateErrorNamespaceSymbol(comp.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType)
Emit\CompilationEmitTests.vb (3)
2039Dim m = c.GlobalNamespace.GetModuleMembers() 2042Assert.Equal(1, c.GlobalNamespace.GetModuleMembers("M").Length) 2043Assert.Equal(0, c.GlobalNamespace.GetModuleMembers("Z").Length)
Emit\EmitMetadata.vb (1)
307Dim class1 = c1.GlobalNamespace.GetMembers("Class1")
Emit\EntryPointTests.vb (2)
1361Assert.Equal(compilation.GlobalNamespace.GetMember(Of NamedTypeSymbol)("A").GetMember(Of MethodSymbol)("Main"), 1383Assert.Equal(compilation.GlobalNamespace.GetMember(Of NamedTypeSymbol)("A").GetMember(Of MethodSymbol)("Main"),
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (4)
CompilationContext.vb (3)
579binder = BuildImportedSymbolsBinder(binder, New NamespaceBinder(binder, compilation.GlobalNamespace), importRecordGroups) 593[namespace] = compilation.GlobalNamespace 604Debug.Assert([namespace] Is compilation.GlobalNamespace)
EvaluationContext.vb (1)
557Return GetMissingAssemblyIdentitiesHelper(CType(diagnostic.Code, ERRID), diagnostic.Arguments, Me.Compilation.GlobalNamespace, linqLibrary)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\ImplementsClauseCompletionProvider.vb (1)
216defaultListing.Add(semanticModel.Compilation.GlobalNamespace)
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
InteractiveSessionTests.vb (1)
156Return DirectCast(c.GlobalNamespace.GetMembers(name).Single(), INamedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (11)
Compilation\CompilationAPITests.vb (6)
1801Dim fakeIntType = compilation.CreateErrorTypeSymbol(compilation.CreateErrorNamespaceSymbol(compilation.GlobalNamespace, "System"), "Int32", arity:=0) 1888Dim fakeIntType = compilation.CreateErrorTypeSymbol(compilation.CreateErrorNamespaceSymbol(compilation.GlobalNamespace, "System"), "Int32", arity:=0) 2010Dim mainMethod = compilation.GlobalNamespace.GetMember(Of NamedTypeSymbol)("A").GetMember(Of MethodSymbol)("Main") 2228Dim mainMethod = compilation.GlobalNamespace.GetMember(Of NamedTypeSymbol)("B").GetMember(Of MethodSymbol)("Main") 2553TestEqualityRecursive(compilation.GlobalNamespace, 2554compilation.GlobalNamespace,
Semantics\AccessCheckTests.vb (1)
720Dim globalNS As NamespaceSymbol = c.GlobalNamespace
Semantics\Conversions.vb (2)
248Dim typeCodeType = c1.GlobalNamespace.GetMembers("System").OfType(Of NamespaceSymbol)().Single().GetTypeMembers("TypeCode").Single() 1100Dim typeCodeType = c1.GlobalNamespace.GetMembers("System").OfType(Of NamespaceSymbol)().Single().GetTypeMembers("TypeCode").Single()
Semantics\NativeIntegerTests.vb (2)
24Dim type = comp.GlobalNamespace.GetTypeMembers("I").Single() 38type = comp.GlobalNamespace.GetTypeMembers("I").Single()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (44)
DocumentationComments\ConstructorDocumentationCommentTests.vb (1)
34_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\DocCommentTests.vb (1)
6804Dim outer = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("Outer")
DocumentationComments\EventDocumentationCommentTests.vb (1)
44_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\FieldDocumentationCommentTests.vb (1)
50_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\MethodDocumentationCommentTests.vb (1)
89_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\PropertyDocumentationCommentTests.vb (1)
47_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\TypeDocumentationCommentTests.vb (2)
61_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol) 68_compilation.GlobalNamespace.GetTypeMembers("Color").Single().GetDocumentationCommentId())
SymbolDisplay\SymbolDisplayTests.vb (1)
5355Dim [global] = comp.GlobalNamespace
SymbolsTests\AssemblyAndNamespaceTests.vb (2)
438Dim globalNS = comp.GlobalNamespace 490Dim globalNS = comp.GlobalNamespace
SymbolsTests\CompilationCreationTests.vb (4)
90Dim c107 As TypeSymbol = c1.GlobalNamespace.GetTypeMembers("C107").Single() 116Assert.Equal(SpecialType.None, c2.GlobalNamespace.GetTypeMembers("C107").Single().SpecialType) 213Dim globalNs = c1.GlobalNamespace 2028Dim current As NamespaceOrTypeSymbol = c.GlobalNamespace
SymbolsTests\Metadata\PE\LoadingMetadataTokens.vb (2)
101Dim class1 = compilation.GlobalNamespace.GetTypeMember("C") 125Dim struct1 = compilation.GlobalNamespace.GetTypeMember("S")
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (21)
47Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 63Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 79Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 101Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 116Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 139Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 154Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 170Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 186Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 202Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 218Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 234Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 250Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 266Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 280Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 294Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 307Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 323Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 340Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 366Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("DrivedClass").[Single]() 390Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("Interface1Impl2").[Single]()
SymbolsTests\Metadata\PE\TypeForwarders.vb (1)
982Return EnumerateNamespaces(comp.GlobalNamespace, "")
SymbolsTests\Retargeting\RetargetCustomModifiers.vb (2)
36Dim modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single() 115Dim modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single()
SymbolsTests\Source\EnumTests.vb (1)
1394Dim currentSymbol As Symbol = compilation.GlobalNamespace
SymbolsTests\Source\PropertyTests.vb (2)
4702Dim type = DirectCast(compilation.GlobalNamespace.GetMembers("FamilyAssembly").Single(), PENamedTypeSymbol) 5588Dim type = DirectCast(compilation.GlobalNamespace.GetMembers("Signatures").Single(), PENamedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (4)
CompilationTestUtils.vb (1)
709Dim currentSymbol As Symbol = compilation.GlobalNamespace
Extensions.vb (3)
38Return DirectCast(comp, VisualBasicCompilation).GlobalNamespace.GetMember(qualifiedName) 43Return DirectCast(DirectCast(comp, VisualBasicCompilation).GlobalNamespace.GetMember(qualifiedName), T) 49Return GetMembers(DirectCast(comp, VisualBasicCompilation).GlobalNamespace, qualifiedName, lastContainer)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.vb (4)
212Dim typeC = DirectCast(compilation.GlobalNamespace.GetMembers("C").First, INamedTypeSymbol) 1588Dim symbol = compilation.GlobalNamespace.GetMembers("I").Single() 3469Dim symbolC = DirectCast(comp.GlobalNamespace.GetMembers("C").First(), INamedTypeSymbol) 3727Dim symbolC = DirectCast(comp.GlobalNamespace.GetMembers("C").First(), INamedTypeSymbol)
Microsoft.CodeAnalysis.Workspaces (4)
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
510Bind(derivedTypeIndex, compilation.GlobalNamespace, ref tempBuilder.AsRef(), cancellationToken);
Recommendations\AbstractRecommendationServiceRunner.cs (1)
293: semanticModel.LookupNamespacesAndTypes(_context.Position, semanticModel.Compilation.GlobalNamespace, nameof(System))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
123var currentNamespace = reader.Compilation.GlobalNamespace;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
86return new SymbolKeyResolution(reader.Compilation.GlobalNamespace);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
FindAllDeclarationsTests.cs (1)
185var expectedSymbol = (await solution.GetProject(submission0Id).GetCompilationAsync()).GlobalNamespace.GetMembers("Outer").SingleOrDefault().GetMembers("Inner").SingleOrDefault();
SymbolKeyTests.cs (2)
419var b = ((IMethodSymbol)compilation1.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single()).Parameters[1]; 443var b = ((IMethodSymbol)compilation1.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single()).Parameters[1];
Microsoft.VisualStudio.LanguageServices (2)
Interactive\VsResetInteractive.cs (1)
309return namespacesToImport.Where(ns => compilation.GlobalNamespace.GetQualifiedNamespace(ns) != null);
Venus\ContainedLanguageCodeSupport.cs (1)
429var ns = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GlobalNamespace;
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
202Recurse(compilation.GlobalNamespace.GetMembers());