777 references to SourceModule
Microsoft.CodeAnalysis (4)
Compilation\Compilation.cs (4)
1037INamespaceSymbol container = this.SourceModule.GlobalNamespace; 1260foreach (var referencedAssembly in SourceModule.ReferencedAssemblySymbols) 3224pePdbFilePath = pePdbFilePath ?? FileNameUtilities.ChangeExtension(SourceModule.Name, "pdb"); 3428pdbFilePath ?? FileNameUtilities.ChangeExtension(SourceModule.Name, "pdb"),
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (1)
75foreach (var candidateTopLevelType in compilation.SourceModule.GlobalNamespace.GetTypeMembers(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName, arity: 0))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (25)
SymbolKey\SymbolKeyCompilationsTests.cs (12)
98var symbol01 = comp1.SourceModule.GlobalNamespace.GetMembers().FirstOrDefault() as NamedTypeSymbol; 99var symbol02 = comp1.SourceModule.GlobalNamespace.GetMembers().FirstOrDefault() as NamedTypeSymbol; 130var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 157var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 185var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 228var type = compilation.SourceModule.GlobalNamespace.GetTypeMembers("C").Single(); 463var namespace1 = comp1.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 466var namespace2 = comp2.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 546var typeSym1 = comp1.SourceModule.GlobalNamespace.GetTypeMembers("Test").Single(); 549var typeSym2 = comp2.SourceModule.GlobalNamespace.GetTypeMembers("Test").Single(); 571var namespace1 = comp1.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 574var namespace2 = comp2.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol;
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (3)
71var typesym = comp2.SourceModule.GlobalNamespace.GetTypeMembers("App").FirstOrDefault(); 239var typeA = comp20.SourceModule.GlobalNamespace.GetTypeMembers("A").Single(); 254var typeTest = comp40.SourceModule.GlobalNamespace.GetTypeMembers("Test").FirstOrDefault();
SymbolKey\SymbolKeyTestBase.cs (1)
202GetSourceMemberSymbols(compilation.SourceModule.GlobalNamespace.GetPublicSymbol(), list, localDumper);
Workspaces\WorkspaceTests_EditorFeatures.cs (9)
415var classC = compilation.SourceModule.GlobalNamespace.GetMembers("C").Single(); 438var classD = compilation2.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 466var classD = compilation2.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 500var classD = compilation2.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 518var classDz = compilation2Z.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 554var classDy = compilation2y.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 622var classDy = compilation2y.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 652var classDz = compilation2Z.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 673var classDz = compilation2Z.SourceModule.GlobalNamespace.GetTypeMembers("D").Single();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (28)
CodeGen\CodeGenAsyncIteratorTests.cs (1)
2063var m = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M");
CodeGen\CodeGenFunctionPointersTests.cs (6)
6464assertMethods(comp.SourceModule); 6517assertMethods(comp.SourceModule); 6641assertMethods(comp.SourceModule); 6719assertMethods(comp.SourceModule); 6797assertMethods(comp.SourceModule); 12765return ((CSharpCompilation)verifier.Compilation).SourceModule;
CodeGen\CodeGenTupleTest.cs (8)
4593var mTuple = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M").ReturnType; 4623var m2Tuple = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>("M2").Parameters[0].Type; 6240ns = comp.CreateErrorNamespaceSymbol(comp.SourceModule.GlobalNamespace, "a"); 6244Assert.Same(comp.SourceModule.GlobalNamespace, ns.ContainingSymbol); 6245Assert.Same(comp.SourceModule.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly); 6246Assert.Same(comp.SourceModule.GlobalNamespace.ContainingModule, ns.ContainingModule); 6261vt2 = comp.CreateErrorTypeSymbol(comp.CreateErrorNamespaceSymbol(comp.SourceModule.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType); 6600var tuple1 = (INamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IFieldSymbol>("F").Type;
Emit\CompilationEmitTests.cs (13)
2136compWithReal.SourceModule.GetReferencedAssemblySymbols().Last().GlobalNamespace.GetMembers().Select(m => m.ToDisplayString())); 2153compWithReal.SourceModule.GetReferencedAssemblySymbols().Last().GetAttributes().Select(a => a.AttributeClass.ToTestDisplayString())); 2167compWithReal2.SourceModule.GetReferencedAssemblySymbols().Last().GlobalNamespace.GetMembers().Select(m => m.ToDisplayString())); 2184compWithReal2.SourceModule.GetReferencedAssemblySymbols().Last().GetAttributes().Select(a => a.AttributeClass.ToTestDisplayString())); 2195compWithMetadata.SourceModule.GetReferencedAssemblySymbols().Last().GlobalNamespace.GetMembers().Select(m => m.ToDisplayString())); 2211compWithMetadata.SourceModule.GetReferencedAssemblySymbols().Last().GetAttributes().Select(a => a.AttributeClass.ToTestDisplayString())); 2224compWithRef.SourceModule.GetReferencedAssemblySymbols().Last().GlobalNamespace.GetMembers().Select(m => m.ToDisplayString())); 2239compWithRef.SourceModule.GetReferencedAssemblySymbols().Last().GetAttributes().Select(a => a.AttributeClass.ToTestDisplayString())); 2302input.SourceModule.GetReferencedAssemblySymbols().Last().GlobalNamespace.GetMembers().Select(m => m.ToDisplayString())); 2369input.SourceModule.GetReferencedAssemblySymbols().Last().GlobalNamespace.GetMembers().Select(m => m.ToDisplayString())); 2436input.SourceModule.GetReferencedAssemblySymbols().Last().GlobalNamespace.GetMembers().Select(m => m.ToDisplayString())); 2467var globalNamespace = compWithRef.SourceModule.GetReferencedAssemblySymbols().Last().GlobalNamespace; 2513compWithRef.SourceModule.GetReferencedAssemblySymbols().Last().GlobalNamespace.GetMembers().Select(m => m.ToDisplayString()));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (51)
Attributes\AttributeTests.cs (5)
1494var attrs = compilation.SourceModule.GlobalNamespace.GetMember("A").GetAttributes(); 1518var attrs = compilation.SourceModule.GlobalNamespace.GetMember("Goo").GetAttributes(); 5420var global = comp.SourceModule.GlobalNamespace; 10033Assert.Same(compilation1.Assembly, compilation2.SourceModule.ReferencedAssemblySymbols[1]); 10044Assert.NotSame(compilation1.Assembly, compilation3.SourceModule.ReferencedAssemblySymbols[1]);
Attributes\AttributeTests_RefSafetyRules.cs (2)
174Assert.Equal(useUpdatedEscapeRulesA, comp.SourceModule.UseUpdatedEscapeRules); 182Assert.Equal(languageVersionB == LanguageVersion.CSharp11, comp.SourceModule.UseUpdatedEscapeRules);
FlowAnalysis\FlowTestBase.cs (1)
24foreach (var method in AllMethods(compilation.SourceModule.GlobalNamespace))
RefStructInterfacesTests.cs (42)
4481var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4489var d = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("D"); 4515var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4544var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4566var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4598var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4624var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4656var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4691var method = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 4728var method = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 4754var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4783var method = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 4820var method = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 4849var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4871var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4900var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4922var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4950var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 4977var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5008var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5037var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5062var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5091var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5115var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5142var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5163var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5184var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5209var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5234var c = comp.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("C"); 5259var method = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 5288var method = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 5317var method = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 5346var method = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 5375var method = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C.M"); 5419var method1 = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C2.M1"); 5423var method2 = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C3.M2"); 5513var method1 = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C2.M1"); 5518var method2 = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C2.M2"); 5556var method1 = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C2.C1.M1"); 5560var method2 = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C2.C1.M2"); 5642var method1 = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C2.C1<C>.M1"); 5647var method2 = comp.SourceModule.GlobalNamespace.GetMember<MethodSymbol>("C2.C1<C>.M2");
Semantics\CollectionExpressionTests.cs (1)
22765Assert.False(comp.SourceModule.UseUpdatedEscapeRules);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (54)
Semantics\AccessCheckTests.cs (2)
738IAssemblySymbol sourceAssem = c.SourceModule.ContainingAssembly; 899IAssemblySymbol sourceAssem = c1.SourceModule.ContainingAssembly;
Semantics\InterpolationTests.cs (12)
6823var sParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Single(); 6916var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Single(); 6991var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single(); 7069var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single(); 7144var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single(); 7219var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single(); 7252var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single(); 7447var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Single(); 7524var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod(".ctor").Parameters.Single(); 7601var c = comp.SourceModule.GlobalNamespace.GetTypeMember("C"); 7602var handler = comp.SourceModule.GlobalNamespace.GetTypeMember("CustomHandler"); 8017var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single();
Semantics\NullableReferenceTypesTests.cs (18)
100124symbolValidator2(comp3.SourceModule); 100157symbolValidator1(comp5.SourceModule); 100163symbolValidator2(comp6.SourceModule); 100243symbolValidator2(comp3.SourceModule); 100262symbolValidator1(comp5.SourceModule); 100268symbolValidator2(comp6.SourceModule); 100379var m = comp.SourceModule; 100418var m = comp.SourceModule; 100438var m = comp.SourceModule; 100493var m = comp.SourceModule; 100537var m = comp.SourceModule; 100571Assert.True(((MethodSymbol)comp.SourceModule.GlobalNamespace.GetMember("B.F1")).TypeParameters[0].IsNotNullable); 100582var m = comp.SourceModule; 100621var m = comp.SourceModule; 100915var m = comp.SourceModule; 100964var m = comp.SourceModule; 100991var m = comp.SourceModule; 105038var m = comp.SourceModule;
Semantics\RawInterpolationTests_Handler.cs (11)
5079var sParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Single(); 5184var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Single(); 5271var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single(); 5361var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single(); 5448var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single(); 5535var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single(); 5716var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Single(); 5805var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod(".ctor").Parameters.Single(); 5894var c = comp.SourceModule.GlobalNamespace.GetTypeMember("C"); 5895var handler = comp.SourceModule.GlobalNamespace.GetTypeMember("CustomHandler"); 6202var cParam = comp.SourceModule.GlobalNamespace.GetTypeMember("C").GetMethod("M").Parameters.Skip(1).Single();
Semantics\SemanticErrorTests.cs (7)
3252var type1 = comp.SourceModule.GlobalNamespace.GetMembers("MyClass").Single() as NamedTypeSymbol; 25113Assert.True(comp.SourceModule.GlobalNamespace.GetMembersUnordered().Single(m => m.Name == "A").HasComplete(CompletionPart.All)); 25114var bSymbol = (SourceNamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembersUnordered().Single(m => m.Name == "B"); 25181var aSymbol = (SourceNamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembersUnordered().Single(m => m.Name == "A"); 25185var eSymbol = (SourceNamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembersUnordered().Single(m => m.Name == "E"); 25278Assert.True(comp.SourceModule.GlobalNamespace.GetMembersUnordered().Single(m => m.Name == "A").HasComplete(CompletionPart.All)); 25279var bSymbol = (SourceNamespaceSymbol)comp.SourceModule.GlobalNamespace.GetMembersUnordered().Single(m => m.Name == "B");
Semantics\TopLevelStatementsTests.cs (4)
6230var a = ((Compilation)comp).SourceModule.GlobalNamespace.GetTypeMember("A"); 6274var a = ((Compilation)comp).SourceModule.GlobalNamespace.GetTypeMember("A"); 6314var a = ((Compilation)comp).SourceModule.GlobalNamespace.GetTypeMember("A"); 6364var a = ((Compilation)comp).SourceModule.GlobalNamespace.GetTypeMember("A");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (588)
Compilation\GetSemanticInfoTests.cs (1)
389var tsym = comp.SourceModule.GlobalNamespace.GetTypeMembers("Test").FirstOrDefault();
Compilation\SemanticModelAPITests.cs (2)
841var mems = comp.SourceModule.GlobalNamespace.GetMembers(); 867var pTypeSym = comp.SourceModule.GlobalNamespace.GetTypeMembers("PC").Single();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (7)
2786var globalNS = compilation.SourceModule.GlobalNamespace; 2907var globalNS = compilation.SourceModule.GlobalNamespace; 2969var globalNS = compilation.SourceModule.GlobalNamespace; 3018var globalNS = compilation.SourceModule.GlobalNamespace; 3045var globalNS = compilation.SourceModule.GlobalNamespace; 3075var globalNS = compilation.SourceModule.GlobalNamespace; 3141var globalNS = compilation.SourceModule.GlobalNamespace;
DocumentationComments\DocumentationCommentIDTests.cs (1)
197var symbol = comp.SourceModule;
SymbolDisplay\SymbolDisplayTests.cs (1)
4567var tsym1 = comp1.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("Gen");
Symbols\AssemblyAndNamespaceTests.cs (2)
59var sym = comp.SourceModule; 334var globalNS = compilation.SourceModule.GlobalNamespace;
Symbols\CheckedUserDefinedOperatorsTests.cs (62)
43validator(compilation1.SourceModule); 164var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 355var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 380var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 456var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 483var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 515var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 533expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 541expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 687var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 705expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 713expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 810var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 818expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 826expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 859var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 867expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 875expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 903var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 937var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 980var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 1016var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 1260validator(compilation1.SourceModule); 1370var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 1525var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 1552var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 1634var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 1661var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 1695var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 1714expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 1722expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 1818var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 1836expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 1851expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 1884var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 1892expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 1900expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 1928var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 1946expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 1954expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 2053var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 2071expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 2079expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 2112var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 2120expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 2128expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 2180var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 2225var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 2440var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 2467var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 2494validator(compilation1.SourceModule); 2616var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 2757var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 2780var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 2854var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 2872expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 2880expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 3020var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 3038expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 3046expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).Single(); 3187var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 3219var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C");
Symbols\CustomModifiersTests.cs (6)
1522Assert.Same(compilation1.SourceModule.CorLibrary(), test.Parameters.First().Type.OriginalDefinition.ContainingAssembly); 1523Assert.Same(compilation1.SourceModule.CorLibrary(), ((CSharpCustomModifier)((NamedTypeSymbol)test.Parameters.First().Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].CustomModifiers.First()).ModifierSymbol.ContainingAssembly); 1531Assert.Same(compilation2.SourceModule.CorLibrary(), test.Parameters.First().Type.OriginalDefinition.ContainingAssembly); 1532Assert.Same(compilation2.SourceModule.CorLibrary(), ((CSharpCustomModifier)((NamedTypeSymbol)test.Parameters.First().Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].CustomModifiers.First()).ModifierSymbol.ContainingAssembly); 1534Assert.NotSame(compilation1.SourceModule.CorLibrary(), compilation2.SourceModule.CorLibrary());
Symbols\DefaultInterfaceImplementationTests.cs (384)
127Validate1(compilation1.SourceModule); 178Validate2(compilation2.SourceModule); 298Validate1(compilation1.SourceModule); 354Validate2(compilation2.SourceModule); 365Validate2(compilation3.SourceModule); 438Validate1(compilation1.SourceModule); 494Validate2(compilation2.SourceModule); 505Validate2(compilation3.SourceModule); 595Validate(compilation1.SourceModule); 693Validate(compilation1.SourceModule); 795Validate(compilation1.SourceModule); 897Validate(compilation1.SourceModule); 2590Validate1(compilation1.SourceModule); 2643Validate2(compilation2.SourceModule); 2655Validate2(compilation3.SourceModule); 3728ValidatePropertyImplementation_201(compilation1.SourceModule); 3870ValidatePropertyImplementation_201(compilation1.SourceModule); 4022Validate(compilation1.SourceModule); 4174Validate(compilation1.SourceModule); 4269ValidatePropertyImplementation_501(compilation1.SourceModule, "Test1"); 4322ValidatePropertyImplementation_501(compilation3.SourceModule, "Test2"); 4450ValidatePropertyImplementation_501(compilation3.SourceModule, "Test2"); 4571ValidatePropertyImplementation_501(compilation1.SourceModule, "Test1"); 4617ValidatePropertyImplementation_501(compilation3.SourceModule, "Test2"); 4667ValidatePropertyImplementation_501(compilation1.SourceModule, "Test1"); 4712ValidatePropertyImplementation_501(compilation3.SourceModule, "Test2"); 4778ValidatePropertyImplementation_501(compilation1.SourceModule, "Test1"); 4792ValidatePropertyImplementation_501(compilation2.SourceModule, "Test2"); 4848ValidatePropertyImplementation_501(compilation3.SourceModule, "Test2"); 4887var derived = compilation1.SourceModule.GlobalNamespace.GetTypeMember("Test1"); 5389ValidateIndexerImplementation_201(compilation1.SourceModule); 5506ValidateIndexerImplementation_201(compilation1.SourceModule); 5651Validate(compilation1.SourceModule); 5778Validate(compilation1.SourceModule); 5847ValidateIndexerImplementation_501(compilation1.SourceModule, "Test1"); 5878ValidateIndexerImplementation_501(compilation3.SourceModule, "Test2"); 5988ValidateIndexerImplementation_501(compilation3.SourceModule, "Test2"); 6118ValidateIndexerImplementation_501(compilation1.SourceModule, "Test1"); 6164ValidateIndexerImplementation_501(compilation3.SourceModule, "Test2"); 6212ValidateIndexerImplementation_501(compilation1.SourceModule, "Test1"); 6226ValidateIndexerImplementation_501(compilation2.SourceModule, "Test2"); 6258ValidateIndexerImplementation_501(compilation3.SourceModule, "Test2"); 6318ValidateIndexerImplementation_501(compilation1.SourceModule, "Test1"); 6360ValidateEventImplementationTest1_101(compilation1.SourceModule, haveAdd, haveRemove, isStatic); 6378Validate2(compilation2.SourceModule); 6552Validate1(compilation1.SourceModule); 6608Validate2(compilation2.SourceModule); 6624Validate2(compilation3.SourceModule); 6953ValidateEventImplementation_201(compilation1.SourceModule); 7056ValidateEventImplementation_201(compilation1.SourceModule); 7163Validate(compilation1.SourceModule); 7270Validate(compilation1.SourceModule); 7335ValidateEventImplementation_501(compilation1.SourceModule, "Test1"); 7370ValidateEventImplementation_501(compilation3.SourceModule, "Test2"); 7456ValidateEventImplementation_501(compilation3.SourceModule, "Test2"); 7551ValidateEventImplementation_501(compilation1.SourceModule, "Test1"); 7579ValidateEventImplementation_501(compilation3.SourceModule, "Test2"); 7612ValidateEventImplementation_501(compilation1.SourceModule, "Test1"); 7639ValidateEventImplementation_501(compilation3.SourceModule, "Test2"); 7688ValidateEventImplementation_501(compilation1.SourceModule, "Test1"); 7702ValidateEventImplementation_501(compilation2.SourceModule, "Test2"); 7740ValidateEventImplementation_501(compilation3.SourceModule, "Test2"); 8777Validate(compilation1.SourceModule); 8879Validate(compilation1.SourceModule); 9049Validate(compilation1.SourceModule); 9255ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.Internal, isStatic: isStatic); 9263ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.Internal, isStatic: isStatic); 9293ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.Internal, isStatic: isStatic); 9306ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.Internal, isStatic: isStatic); 9453ValidateMethodModifiersImplicit_10(compilation1.SourceModule, accessibility, isStatic: isStatic); 9460ValidateMethodModifiersImplicit_10(compilation1.SourceModule, accessibility, isStatic: isStatic); 9479ValidateMethodModifiersImplicit_10(compilation3.SourceModule, accessibility, isStatic: isStatic); 9494ValidateMethodModifiersImplicit_10(compilation3.SourceModule, accessibility, isStatic: isStatic); 9534ValidateMethodModifiersExplicit_10(compilation1.SourceModule, Accessibility.Internal); 9552ValidateMethodModifiersExplicit_10(compilation3.SourceModule, Accessibility.Internal); 9563ValidateMethodModifiersExplicit_10(compilation4.SourceModule, Accessibility.Internal); 9833ValidateMethodModifiersExplicitInTest2_10(compilation1.SourceModule, Accessibility.Internal); 9847ValidateMethodModifiersExplicitInTest2_10(compilation3.SourceModule, Accessibility.Internal); 9854ValidateMethodModifiersExplicitInTest2_10(compilation4.SourceModule, Accessibility.Internal); 9974ValidateMethodModifiersImplicitInTest2_10(compilation1.SourceModule, Accessibility.Internal); 9982ValidateMethodModifiersImplicitInTest2_10(compilation1.SourceModule, Accessibility.Internal); 10006ValidateMethodModifiersImplicitInTest2_10(compilation3.SourceModule, Accessibility.Internal); 10056ValidateMethodModifiersImplicitInTest2_10(compilation3.SourceModule, Accessibility.Internal); 10064ValidateMethodModifiersImplicitInTest2_10(compilation3.SourceModule, Accessibility.Internal); 10157Validate(compilation1.SourceModule); 10377Validate(compilation1.SourceModule); 10505Validate(compilation2.SourceModule); 10544Validate(compilation3.SourceModule); 10833Validate(compilation1.SourceModule); 10890Validate1(compilation1.SourceModule); 10936Validate1(compilation3.SourceModule); 10947Validate1(compilation4.SourceModule); 11703validate(compilation1.SourceModule); 11863ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.Protected); 11888ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.Protected); 11913ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.Protected); 11921ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.Protected); 11994ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.ProtectedOrInternal); 12003ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.ProtectedOrInternal); 12035ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.ProtectedOrInternal); 12042ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.ProtectedOrInternal); 12117ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.ProtectedAndInternal); 12126ValidateMethodModifiersImplicit_10(compilation1.SourceModule, Accessibility.ProtectedAndInternal); 12158ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.ProtectedAndInternal); 12171ValidateMethodModifiersImplicit_10(compilation3.SourceModule, Accessibility.ProtectedAndInternal); 12224ValidateMethodModifiersExplicit_10(compilation1.SourceModule, Accessibility.Protected); 12245ValidateMethodModifiersExplicit_10(compilation3.SourceModule, Accessibility.Protected); 12286ValidateMethodModifiersExplicit_10(compilation1.SourceModule, Accessibility.ProtectedOrInternal); 12307ValidateMethodModifiersExplicit_10(compilation3.SourceModule, Accessibility.ProtectedOrInternal); 12348ValidateMethodModifiersExplicit_10(compilation1.SourceModule, Accessibility.ProtectedAndInternal); 12370ValidateMethodModifiersExplicit_10(compilation3.SourceModule, Accessibility.ProtectedAndInternal); 12621validate1(compilation1.SourceModule); 12646validate1(compilation3.SourceModule); 12709validate1(compilation1.SourceModule); 12734validate1(compilation3.SourceModule); 12797validate1(compilation1.SourceModule); 12822validate1(compilation3.SourceModule); 14000Validate(compilation1.SourceModule); 14228Validate(compilation1.SourceModule); 14269Validate(compilation2.SourceModule); 14625Validate(compilation1.SourceModule); 14918ValidatePropertyModifiers_11(compilation1.SourceModule, accessibility); 14930ValidatePropertyModifiers_11(compilation1.SourceModule, accessibility); 14964ValidatePropertyModifiers_11(compilation3.SourceModule, accessibility); 14983ValidatePropertyModifiers_11(compilation3.SourceModule, accessibility); 15116ValidatePropertyImplementation_11(compilation1.SourceModule); 15127ValidatePropertyImplementation_11(compilation1.SourceModule); 15143ValidatePropertyImplementation_11(compilation3.SourceModule); 15162ValidatePropertyImplementation_11(compilation3.SourceModule); 15253ValidatePropertyImplementation_11(compilation1.SourceModule); 15276ValidatePropertyImplementation_11(compilation3.SourceModule); 15667ValidatePropertyImplementationByBase_11(compilation1.SourceModule); 15681ValidatePropertyImplementationByBase_11(compilation3.SourceModule); 15690ValidatePropertyImplementationByBase_11(compilation4.SourceModule); 15843ValidatePropertyImplementationByBase_11(compilation1.SourceModule); 15854ValidatePropertyImplementationByBase_11(compilation1.SourceModule); 15870ValidatePropertyImplementationByBase_11(compilation3.SourceModule); 15888ValidatePropertyImplementationByBase_11(compilation3.SourceModule); 15985ValidatePropertyImplementationByBase_11(compilation3.SourceModule); 16246Validate(compilation1.SourceModule); 16773Validate(compilation1.SourceModule); 16923Validate(compilation2.SourceModule); 16931Validate(compilation3.SourceModule); 17468Validate1(compilation1.SourceModule); 17539Validate1(compilation3.SourceModule); 17553Validate1(compilation4.SourceModule); 17744Validate(compilation1.SourceModule); 18288Validate1(compilation1.SourceModule); 18334Validate1(compilation3.SourceModule); 18463Validate1(compilation1.SourceModule); 18474Validate1(compilation1.SourceModule); 18501Validate1(compilation3.SourceModule); 18521Validate1(compilation3.SourceModule); 19849Validate1(compilation1.SourceModule); 19920Validate1(compilation3.SourceModule); 19934Validate1(compilation4.SourceModule); 20335validate(compilation1.SourceModule); 27628Validate(compilation1.SourceModule); 27800Validate(compilation1.SourceModule); 27881Validate(compilation2.SourceModule); 27913Validate(compilation3.SourceModule); 28131Validate(compilation1.SourceModule); 28424Validate1(compilation1.SourceModule); 28435Validate1(compilation1.SourceModule); 28507Validate1(compilation3.SourceModule); 28526Validate1(compilation3.SourceModule); 28621ValidateEventImplementation_11(compilation1.SourceModule); 28632ValidateEventImplementation_11(compilation1.SourceModule); 28648ValidateEventImplementation_11(compilation3.SourceModule); 28666ValidateEventImplementation_11(compilation3.SourceModule); 28758ValidateEventImplementation_11(compilation1.SourceModule); 28779ValidateEventImplementation_11(compilation3.SourceModule); 29176ValidateEventImplementationByBase_11(compilation1.SourceModule); 29190ValidateEventImplementationByBase_11(compilation3.SourceModule); 29199ValidateEventImplementationByBase_11(compilation4.SourceModule); 29355ValidateEventImplementationByBase_11(compilation1.SourceModule); 29366ValidateEventImplementationByBase_11(compilation1.SourceModule); 29382ValidateEventImplementationByBase_11(compilation3.SourceModule); 29400ValidateEventImplementationByBase_11(compilation3.SourceModule); 29483ValidateEventImplementationByBase_11(compilation3.SourceModule); 29628Validate(compilation1.SourceModule); 30109Validate(compilation1.SourceModule); 30317Validate(compilation2.SourceModule); 30362Validate(compilation3.SourceModule); 30873Validate1(compilation1.SourceModule); 30942Validate1(compilation3.SourceModule); 30956Validate1(compilation4.SourceModule); 31107validate(compilation1.SourceModule); 32965validateMethodImplementationInDerived_01(compilation1.SourceModule); 32980validateMethodImplementationInDerived_01(compilation2.SourceModule); 32995validateMethodImplementationInDerived_01(compilation3.SourceModule); 33130ValidateMethodImplementationInDerived_01(compilation1.SourceModule, isStatic: false); 33155ValidateMethodImplementationInDerived_01(compilation2.SourceModule, isStatic: false); 33212ValidateMethodImplementationInDerived_01(compilation1.SourceModule, isStatic: true); 33241ValidateMethodImplementationInDerived_01(compilation2.SourceModule, isStatic: true); 33296ValidateMethodImplementationInDerived_01(compilation1.SourceModule, isStatic: false); 33375ValidateMethodImplementationInDerived_01(compilation1.SourceModule, isStatic: true); 33446ValidateMethodImplementationInDerived_01(compilation1.SourceModule, isStatic: isStatic); 33672ValidateMethodImplementationInDerived_01(compilation1.SourceModule, i4M1IsAbstract: true, isStatic: isStatic); 33730ValidateMethodImplementationInDerived_01(compilation1.SourceModule, isStatic: isStatic); 33770Validate1(compilation1.SourceModule); 33830Validate1(compilation2.SourceModule); 33861Validate1(compilation3.SourceModule); 33894Validate1(compilation4.SourceModule); 33986Validate1(compilation1.SourceModule); 34147validateMethodImplementationInDerived_01(compilation1.SourceModule); 34162validateMethodImplementationInDerived_01(compilation2.SourceModule); 34177validateMethodImplementationInDerived_01(compilation3.SourceModule); 34199validateMethodImplementationInDerived_01(compilation5.SourceModule); 34214validateMethodImplementationInDerived_01(compilation6.SourceModule); 34288Validate1(compilation1.SourceModule); 34472Validate2(compilation2.SourceModule); 34495Validate2(compilation2.SourceModule); 34507Validate4(compilation4.SourceModule); 34563Validate3(compilation3.SourceModule); 34592Validate5(compilation5.SourceModule); 34803Validate(compilation1.SourceModule); 34899Validate(compilation2.SourceModule); 34916Validate(compilation3.SourceModule); 36392validateMethodImplementationInDerived_01(compilation1.SourceModule); 36409validateMethodImplementationInDerived_01(compilation2.SourceModule); 36434validateMethodImplementationInDerived_01(compilation5.SourceModule); 36580validateMethodImplementationInDerived_01(compilation1.SourceModule); 36597validateMethodImplementationInDerived_01(compilation2.SourceModule); 36622validateMethodImplementationInDerived_01(compilation5.SourceModule); 36768validateMethodImplementationInDerived_01(compilation1.SourceModule); 36785validateMethodImplementationInDerived_01(compilation2.SourceModule); 36810validateMethodImplementationInDerived_01(compilation5.SourceModule); 36893var @interface = comp.SourceModule.GlobalNamespace.GetTypeMember("I"); 36992validatePropertyImplementationInDerived_01(compilation1.SourceModule); 37007validatePropertyImplementationInDerived_01(compilation2.SourceModule); 37022validatePropertyImplementationInDerived_01(compilation3.SourceModule); 37280ValidatePropertyImplementationInDerived_01(compilation1.SourceModule, isStatic: isStatic); 37298ValidatePropertyImplementationInDerived_01(compilation2.SourceModule, isStatic: isStatic); 37380ValidatePropertyImplementationInDerived_01(compilation1.SourceModule, isStatic); 37528ValidatePropertyImplementationInDerived_01(compilation1.SourceModule, i4M1IsAbstract, isStatic: isStatic); 37958Validate1(compilation1.SourceModule); 37993Validate1(compilation2.SourceModule); 38000Validate1(compilation3.SourceModule); 38008Validate1(compilation4.SourceModule); 38407validatePropertyImplementationInDerived_01(compilation1.SourceModule); 38425validatePropertyImplementationInDerived_01(compilation2.SourceModule); 38451validatePropertyImplementationInDerived_01(compilation5.SourceModule); 38747Validate1(compilation1.SourceModule); 38809Validate2(compilation2.SourceModule); 38832Validate2(compilation2.SourceModule); 38844Validate4(compilation4.SourceModule); 38887Validate3(compilation3.SourceModule); 38916Validate5(compilation5.SourceModule); 39112Validate(compilation1.SourceModule); 39180Validate(compilation2.SourceModule); 39197Validate(compilation3.SourceModule); 40020validateEventImplementationInDerived_01(compilation1.SourceModule); 40037validateEventImplementationInDerived_01(compilation2.SourceModule); 40054validateEventImplementationInDerived_01(compilation3.SourceModule); 40231ValidateEventImplementationInDerived_01(compilation1.SourceModule, isStatic: false); 40262ValidateEventImplementationInDerived_01(compilation2.SourceModule, isStatic: false); 40322ValidateEventImplementationInDerived_01(compilation1.SourceModule, isStatic: true); 40352ValidateEventImplementationInDerived_01(compilation2.SourceModule, isStatic: true); 40412ValidateEventImplementationInDerived_01(compilation1.SourceModule, isStatic: false); 40500ValidateEventImplementationInDerived_01(compilation1.SourceModule, isStatic: true); 40588ValidateEventImplementationInDerived_01(compilation1.SourceModule, isStatic); 40809ValidateEventImplementationInDerived_01(compilation1.SourceModule, i4M1IsAbstract: true, isStatic); 40872ValidateEventImplementationInDerived_01(compilation1.SourceModule, isStatic); 41075validateEventImplementationInDerived_01(compilation1.SourceModule); 41092validateEventImplementationInDerived_01(compilation2.SourceModule); 41109validateEventImplementationInDerived_01(compilation3.SourceModule); 41133validateEventImplementationInDerived_01(compilation5.SourceModule); 41145validateEventImplementationInDerived_01(compilation6.SourceModule); 41244Validate1(compilation1.SourceModule); 41471Validate2(compilation2.SourceModule); 41494Validate2(compilation2.SourceModule); 41506Validate4(compilation4.SourceModule); 41565Validate3(compilation3.SourceModule); 41594Validate5(compilation5.SourceModule); 41788Validate(compilation1.SourceModule); 41856Validate(compilation2.SourceModule); 41873Validate(compilation3.SourceModule); 42025validateEventImplementationInDerived_01(compilation1.SourceModule); 42044validateEventImplementationInDerived_01(compilation2.SourceModule); 42071validateEventImplementationInDerived_01(compilation5.SourceModule); 42229validateEventImplementationInDerived_01(compilation1.SourceModule); 42248validateEventImplementationInDerived_01(compilation2.SourceModule); 42275validateEventImplementationInDerived_01(compilation5.SourceModule); 42433validateEventImplementationInDerived_01(compilation1.SourceModule); 42452validateEventImplementationInDerived_01(compilation2.SourceModule); 42479validateEventImplementationInDerived_01(compilation5.SourceModule); 43816Validate1(compilation1.SourceModule); 43866Validate1(compilation4.SourceModule); 43887Validate1(compilation5.SourceModule); 43956Validate1(compilation1.SourceModule); 44002Validate1(compilation4.SourceModule); 44022Validate1(compilation5.SourceModule); 44086Validate1(compilation1.SourceModule); 44132Validate1(compilation4.SourceModule); 44152Validate1(compilation5.SourceModule); 44198validate(compilation1.SourceModule); 44304validate(compilation4.SourceModule); 44647ValidateConstructor(compilation1.SourceModule); 44694ValidateConstructor(compilation1.SourceModule); 44728ValidateConstructor(compilation1.SourceModule); 44756var i1 = compilation1.SourceModule.GlobalNamespace.GetTypeMember("I1"); 45083Validate1(compilation1.SourceModule); 45142Validate1(compilation4.SourceModule); 45175Validate1(compilation5.SourceModule); 45239Validate1(compilation1.SourceModule); 45295Validate1(compilation4.SourceModule); 45316Validate1(compilation5.SourceModule); 45377Validate1(compilation1.SourceModule); 45437Validate1(compilation4.SourceModule); 45464Validate1(compilation5.SourceModule); 45567Validate1(compilation1.SourceModule); 45625Validate1(compilation4.SourceModule); 45645Validate1(compilation5.SourceModule); 45707Validate1(compilation1.SourceModule); 45762Validate1(compilation4.SourceModule); 45782Validate1(compilation5.SourceModule); 51045validate(compilation1.SourceModule); 51073validate(compilation3.SourceModule); 51223validate(compilation1.SourceModule); 51240validate(compilation3.SourceModule); 51363validate(compilation1.SourceModule); 51384validate(compilation3.SourceModule); 51504validate(compilation1.SourceModule); 51521validate(compilation3.SourceModule); 51647validate(compilation1.SourceModule); 51668validate(compilation3.SourceModule); 51787validate(compilation1.SourceModule); 51808validate(compilation3.SourceModule); 51897validate(compilation1.SourceModule); 51914validate(compilation3.SourceModule); 51962validate(compilation1.SourceModule); 52017validate(compilation1.SourceModule); 52082validate(compilation1.SourceModule); 52140validate(compilation1.SourceModule); 52205validate(compilation1.SourceModule); 52260validate(compilation1.SourceModule); 52341validate(compilation1.SourceModule); 52500validate(compilation1.SourceModule); 52513validate(compilation3.SourceModule); 52692validate(compilation1.SourceModule); 52709validate(compilation3.SourceModule); 52857validate(compilation1.SourceModule); 52870validate(compilation3.SourceModule); 53020validate(compilation1.SourceModule); 53037validate(compilation3.SourceModule); 53195validate(compilation1.SourceModule); 53209validate(compilation3.SourceModule); 53357validate(compilation1.SourceModule); 53371validate(compilation3.SourceModule); 53489validate(compilation1.SourceModule); 53506validate(compilation3.SourceModule); 53596validate(compilation1.SourceModule); 53728validate(compilation1.SourceModule); 53874validate(compilation1.SourceModule); 54204validate(compilation2.SourceModule); 57032validate(compilation1.SourceModule); 57478validate(compilation1.SourceModule); 57491validate(compilation3.SourceModule); 57650validate(compilation1.SourceModule); 57667validate(compilation3.SourceModule); 57808validate(compilation1.SourceModule); 57821validate(compilation3.SourceModule); 57959validate(compilation1.SourceModule); 57976validate(compilation3.SourceModule); 58122validate(compilation1.SourceModule); 58135validate(compilation3.SourceModule); 58271validate(compilation1.SourceModule); 58284validate(compilation3.SourceModule); 58391validate(compilation1.SourceModule); 58408validate(compilation3.SourceModule); 58484validate(compilation1.SourceModule); 58676validate(compilation1.SourceModule); 59256validate(compilation2.SourceModule); 59316validate(compilation1.SourceModule); 62749Validate(comp.SourceModule); 62799Validate(comp.SourceModule); 62863Validate(comp.SourceModule); 68169validate1(compilation1.SourceModule); 68200validate2(compilation2.SourceModule); 68846validate(compilation1.SourceModule); 68869validate(compilation3.SourceModule); 68928validate(compilation1.SourceModule); 68954validate(compilation3.SourceModule);
Symbols\IndexerTests.cs (2)
2403NamedTypeSymbol type01 = comp.SourceModule.GlobalNamespace.GetTypeMembers("Test").Single(); 2836var typeSymbol = comp1.SourceModule.GlobalNamespace.GetMember<NamedTypeSymbol>("IGoo");
Symbols\Metadata\MetadataMemberTests.cs (1)
396var classC = compilation.SourceModule.GlobalNamespace.GetTypeMembers("C").Single();
Symbols\Metadata\PE\NoPia.cs (4)
1235var varI5 = varC_Pia5.SourceModule.GlobalNamespace.GetTypeMembers("I5").Single(); 1237var varI6 = varC_Pia5.SourceModule.GlobalNamespace.GetTypeMembers("I6").Single(); 1245var varI7 = varC_Library2.SourceModule.GlobalNamespace.GetTypeMembers("I7").Single(); 1257var varI1 = varC_Pia1.SourceModule.GlobalNamespace.GetTypeMembers("I1").Single();
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (1)
33NamedTypeSymbol classLocalType1 = localConsumer1.SourceModule.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single();
Symbols\RequiredMembersTests.cs (1)
1279var prop = comp.SourceModule.GlobalNamespace.GetMember<PropertySymbol>("C.Prop");
Symbols\Retargeting\RetargetingTests.cs (5)
39var sourceModule = compilation.SourceModule; 110var sourceModule = compilation.SourceModule; 143var sourceModule = compilation.SourceModule; 177var sourceModule = compilation.SourceModule; 213var sourceModule = compilation.SourceModule;
Symbols\Source\BaseClassTests.cs (4)
1440NamespaceSymbol nif = (NamespaceSymbol)comp.SourceModule.GlobalNamespace.GetMembers("if").Single(); 1465NamespaceSymbol nif = (NamespaceSymbol)comp.SourceModule.GlobalNamespace.GetMembers("if").Single(); 1523var classB = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("B")[0]; 1539var classB = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("B")[0];
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
193Assert.True(comp.SourceModule.GlobalNamespace.IsImplicitlyDeclared);
Symbols\Source\DelegateTests.cs (6)
228NamedTypeSymbol dout = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("out").Single(); 338NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single(); 392NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single(); 423NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single(); 454NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single(); 488NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single();
Symbols\Source\EnumTests.cs (2)
757var classEnum = comp.SourceModule.GlobalNamespace.GetMembers("EnumPartial").Single() as NamedTypeSymbol; 1005var global = comp.SourceModule.GlobalNamespace;
Symbols\Source\EventTests.cs (2)
59NamedTypeSymbol c1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C1").Single(); 324NamedTypeSymbol type01 = comp.SourceModule.GlobalNamespace.GetTypeMembers("C").Single();
Symbols\Source\FieldTests.cs (2)
235NamedTypeSymbol c1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C1").Single(); 255NamedTypeSymbol type1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C").Single();
Symbols\Source\MethodTests.cs (2)
1326var derivedClass = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("DerivedClass")[0]; 1618NamedTypeSymbol c1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C1").Single();
Symbols\Source\PropertyTests.cs (2)
449NamedTypeSymbol c1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C1").Single(); 1954var globalNamespace = comp.SourceModule.GlobalNamespace;
Symbols\StaticAbstractMembersInInterfacesTests.cs (9)
23556validate3(compilation3.SourceModule); 23647validate2(compilation2.SourceModule); 23705validate3(compilation3.SourceModule); 23999validate2(compilation2.SourceModule); 24057validate3(compilation3.SourceModule); 32190var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 32227var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 32438var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C"); 32625var c = compilation1.SourceModule.GlobalNamespace.GetTypeMember("C");
Symbols\SymbolErrorTests.cs (63)
1472var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1498var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1517var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1535var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1548var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1573var classA = comp.SourceModule.GlobalNamespace.GetTypeMembers("A").Single() as NamedTypeSymbol; 1685var ns3 = comp.SourceModule.GlobalNamespace.GetMember<NamespaceSymbol>("n3"); 2335var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 2457var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 2556var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 2585var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3088var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3144var ns = comp.SourceModule.GlobalNamespace.GetTypeMembers("A").Single() as NamedTypeSymbol; 3364var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3578var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3600var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3636var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3658var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3705var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3733var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3759var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3784var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3948var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 4376var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 4756var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 5414var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 5556var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 5599var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 7462var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 8083var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 8202var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 8235var nsNamespace = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 8668var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9164var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9194var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9214var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9238var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9261var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9287var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9317var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9335var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 11028var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 11456var ns = comp.SourceModule.GlobalNamespace.GetMembers("x").Single() as NamespaceSymbol; 12346var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 12522var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 12676var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 12725var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13054var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13084var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13114var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13475var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13523var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 14560var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 14682var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 15097var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 15143var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 17650var ns = comp.SourceModule.GlobalNamespace.GetMembers("SA").Single() as NamespaceSymbol; 17687var ns = comp.SourceModule.GlobalNamespace.GetMembers("SA").Single() as NamespaceSymbol; 17930var ns = comp.SourceModule.GlobalNamespace.GetMembers("SA").Single() as NamespaceSymbol; 19374var derived = comp.SourceModule.GlobalNamespace.GetTypeMembers("Derived").Single(); 19407var b = comp.SourceModule.GlobalNamespace.GetMembers("B").Single() as NamespaceSymbol; 19422var b = comp.SourceModule.GlobalNamespace.GetMembers("B").Single() as NamespaceSymbol; 19453var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol;
Symbols\TypeTests.cs (9)
540var globalNS = compilation.SourceModule.GlobalNamespace; 588var globalNS = compilation.SourceModule.GlobalNamespace; 904var globalNS = comp.SourceModule.GlobalNamespace; 1238var global = comp.SourceModule.GlobalNamespace; 1305var global = comp.SourceModule.GlobalNamespace; 1455var errSymbol = comp.SourceModule.GlobalNamespace.GetMembers().FirstOrDefault() as NamedTypeSymbol; 1504var topType = comp.SourceModule.GlobalNamespace.GetTypeMembers("NullableTest").FirstOrDefault(); 1611var topType = comp.SourceModule.GlobalNamespace.GetTypeMembers("S").FirstOrDefault(); 1613var enumType = comp.SourceModule.GlobalNamespace.GetTypeMembers("E").Single();
Symbols\UnsignedRightShiftTests.cs (6)
2706var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 2724expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 2732expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 2878var expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 2896expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First(); 2904expectedSymbol = compilation.SourceModule.GlobalNamespace.GetTypeMember("C").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind != MethodKind.Constructor).First();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1329VerifyUsesOfNullability(createCompilationLambda().SourceModule.GlobalNamespace, expectedUsesOfNullable: ImmutableArray<string>.Empty);
Microsoft.CodeAnalysis.Features (1)
UnusedReferences\UnusedReferencesRemover.cs (1)
56.Select(reference => reference.Compilation.SourceModule.MetadataName)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
CodeGen\CodeGenTuples.vb (5)
8964ns = comp.CreateErrorNamespaceSymbol(comp.SourceModule.GlobalNamespace, "a") 8968Assert.Same(comp.SourceModule.GlobalNamespace, ns.ContainingSymbol) 8969Assert.Same(comp.SourceModule.GlobalNamespace.ContainingAssembly, ns.ContainingAssembly) 8970Assert.Same(comp.SourceModule.GlobalNamespace.ContainingModule, ns.ContainingModule) 8985vt2 = comp.CreateErrorTypeSymbol(comp.CreateErrorNamespaceSymbol(comp.SourceModule.GlobalNamespace, "System"), "ValueTuple", 2).Construct(intType, intType)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (2)
CompilationContext.vb (2)
211Me.Compilation.SourceModule.GlobalNamespace, 227Me.Compilation.SourceModule.GlobalNamespace,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\CompilationAPITests.vb (1)
305Assert.Equal(asmname + ".exe", comp.SourceModule.Name)
FlowAnalysis\FlowTestBase.vb (1)
25For Each method In AllMethods(compilation.SourceModule.GlobalNamespace)
Semantics\AccessCheckTests.vb (1)
721Dim sourceAssem As AssemblySymbol = c.SourceModule.ContainingAssembly
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (7)
SymbolsTests\Metadata\PE\NoPia.vb (4)
941Dim varI5 = varC_Pia5.SourceModule.GlobalNamespace.GetTypeMembers("I5").Single() 943Dim varI6 = varC_Pia5.SourceModule.GlobalNamespace.GetTypeMembers("I6").Single() 949Dim varI7 = varC_Library2.SourceModule.GlobalNamespace.GetTypeMembers("I7").Single() 958Dim varI1 = varC_Pia1.SourceModule.GlobalNamespace.GetTypeMembers("I1").Single()
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (1)
32Dim classLocalType1 As NamedTypeSymbol = localConsumer1.SourceModule.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]()
SymbolsTests\Source\OverridesTests.vb (1)
6726For Each namedType In compilation.SourceModule.GlobalNamespace.GetTypeMembers()
SymbolsTests\Source\TypeTests.vb (1)
690Dim globalNS = comp.SourceModule.GlobalNamespace
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (1)
75foreach (var candidateTopLevelType in compilation.SourceModule.GlobalNamespace.GetTypeMembers(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName, arity: 0))
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
20Suffix = IsLangVersion11AndAbove ? "" : $"_{GetNonRandomizedHashCode(compilation.SourceModule.Name):X8}";
Microsoft.Interop.SourceGeneration (2)
CompilationExtensions.cs (2)
17if (compilation.SourceModule.GetAttributes().Any(attr => attr.AttributeClass.ToDisplayString() == TypeNames.System_Runtime_CompilerServices_SkipLocalsInitAttribute)) 21if (compilation.SourceModule.GetAttributes().Any(attr => attr.AttributeClass.ToDisplayString() == TypeNames.System_Runtime_CompilerServices_DisableRuntimeMarshallingAttribute))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpEntryPointFinder.cs (1)
24visitor.Visit(compilation.SourceModule.GlobalNamespace);
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
ProjectSystemShim\VisualBasicEntryPointFinder.vb (2)
29Dim symbol = compilation.SourceModule.GlobalNamespace 34symbol = symbol.ContainingCompilation.SourceModule.GlobalNamespace