1836 references to GlobalNamespace
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (49)
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();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (142)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (280)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1074)
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;
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\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");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (17)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (33)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (96)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (7)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (17)
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)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (4)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (11)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (44)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (4)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces (4)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Microsoft.VisualStudio.LanguageServices (2)
SemanticSearch.BuildTask (1)