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