10 instantiations of CSharpTestSource
Microsoft.CodeAnalysis.CSharp.Test.Utilities (10)
202 references to CSharpTestSource
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
Attributes\AttributeTests_NullablePublicOnly.cs (7)
33CSharpTestSource sources = new[] { NullablePublicOnlyAttributeDefinition, source };
218CSharpTestSource sources = new[] { NullableAttributeDefinition, NullableContextAttributeDefinition, source };
272CSharpTestSource sources = new[] { NullableAttributeDefinition, NullableContextAttributeDefinition, NullablePublicOnlyAttributeDefinition, source };
292CSharpTestSource sources = new[] { NullableAttributeDefinition, NullableContextAttributeDefinition, NullablePublicOnlyAttributeDefinition, source };
311CSharpTestSource sources = new[] { NullableAttributeDefinition, NullableContextAttributeDefinition, source };
331CSharpTestSource sources = new[] { NullableAttributeDefinition, NullableContextAttributeDefinition, source };
378CSharpTestSource sources = new[] { NullableAttributeDefinition, NullableContextAttributeDefinition, NullablePublicOnlyAttributeDefinition, source };
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (81)
Semantics\InterceptorsTests.cs (77)
38private static readonly SyntaxTree s_attributesTree = CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors);
40private static ImmutableArray<InterceptableLocation?> GetInterceptableLocations(CSharpTestSource source)
203var source = CSharpTestSource.Parse("""
219var interceptors = CSharpTestSource.Parse($$"""
231var attributesTree = CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, options: options);
1395var source = CSharpTestSource.Parse("""
2007var source = CSharpTestSource.Parse("""
2024var interceptors = CSharpTestSource.Parse($$"""
2111var source = CSharpTestSource.Parse("""
2140var interceptors = CSharpTestSource.Parse($$"""
2302var source = CSharpTestSource.Parse("""
2327var interceptors = CSharpTestSource.Parse($$"""
3559var sourceTree = CSharpTestSource.Parse("""
3590var interceptorTree = CSharpTestSource.Parse($$"""
3613var sourceTree = CSharpTestSource.Parse("""
3640var interceptorTree = CSharpTestSource.Parse($$"""
6175var source = CSharpTestSource.Parse("""
6192var interceptors = CSharpTestSource.Parse($$"""
6204comp = CreateCompilation([source, interceptors, s_attributesTree, CSharpTestSource.Parse(UnmanagedCallersOnlyAttributeDefinition, "UnmanagedCallersOnlyAttribute.cs", RegularWithInterceptors)]);
7321var source = CSharpTestSource.Parse("""
7338var interceptors = CSharpTestSource.Parse($$"""
7348var verifier = CompileAndVerify([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)], expectedOutput: "1");
7352interceptors = CSharpTestSource.Parse($$"""
7363verifier = CompileAndVerify([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)], expectedOutput: "1");
7370var tree = CSharpTestSource.Parse("""
7422var interceptors = CSharpTestSource.Parse($$"""
7433var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7454var interceptors = CSharpTestSource.Parse($$"""
7465var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7478var interceptors = CSharpTestSource.Parse($$"""
7489var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7500var interceptors = CSharpTestSource.Parse($$"""
7511var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7523var source = CSharpTestSource.Parse("""
7540var interceptors = CSharpTestSource.Parse($$"""
7551var comp1 = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7574var sourceTree1 = CSharpTestSource.Parse(source, path: "Program1.cs", options: RegularWithInterceptors);
7581var interceptors = CSharpTestSource.Parse($$"""
7594CSharpTestSource.Parse(source, path: "Program2.cs", options: RegularWithInterceptors),
7596CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7608var source = CSharpTestSource.Parse("""
7627var interceptors = CSharpTestSource.Parse($$"""
7637comp = CreateCompilation([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7649var source = CSharpTestSource.Parse("""
7683var interceptors = CSharpTestSource.Parse($$"""
7694var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7706var tree = CSharpTestSource.Parse("""
7731var source = CSharpTestSource.Parse("""
7749var interceptors = CSharpTestSource.Parse($$"""
7773var source = CSharpTestSource.Parse("""
7795var interceptors = CSharpTestSource.Parse($$"""
7818var source = CSharpTestSource.Parse("""
7836var interceptors = CSharpTestSource.Parse($$"""
7859var source = CSharpTestSource.Parse("""
7877var interceptors = CSharpTestSource.Parse($$"""
7900var source = CSharpTestSource.Parse("""
7921var interceptors = CSharpTestSource.Parse($$"""
7943var source = CSharpTestSource.Parse($$"""
7964var interceptors = CSharpTestSource.Parse($$"""
7993var source = CSharpTestSource.Parse($$"""
8017var interceptors = CSharpTestSource.Parse($$"""
8044var source = CSharpTestSource.Parse("""
8063var interceptors = CSharpTestSource.Parse($$"""
8098var source = CSharpTestSource.Parse("""
8122var interceptors = CSharpTestSource.Parse($$"""
8157var source = CSharpTestSource.Parse("""
8182var interceptors = CSharpTestSource.Parse($$"""
8213var source = CSharpTestSource.Parse("""
8237var interceptors = CSharpTestSource.Parse($$"""
8268var source = CSharpTestSource.Parse("""
8292var interceptors = CSharpTestSource.Parse($$"""
8323var source = CSharpTestSource.Parse("""
8342var interceptors = CSharpTestSource.Parse($$"""
8373var source = CSharpTestSource.Parse("""
8400var interceptors = CSharpTestSource.Parse($$"""
8438var source = CSharpTestSource.Parse("""
8464var interceptors = CSharpTestSource.Parse($$"""
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (23)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (56)
CSharpTestBase.cs (39)
830CSharpTestSource source,
866CSharpTestSource source,
902CSharpTestSource source,
944CSharpTestSource source,
980CSharpTestSource source,
1016CSharpTestSource source,
1095internal CompilationVerifier CompileAndVerifyFieldMarshal(CSharpTestSource source, Dictionary<string, byte[]> expectedBlobs, bool isField = true) =>
1105internal CompilationVerifier CompileAndVerifyFieldMarshal(CSharpTestSource source, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true) =>
1114=> CSharpTestSource.Parse(text, filename, options, encoding, checksumAlgorithm);
1150CSharpTestSource source,
1159CSharpTestSource source,
1173CSharpTestSource source,
1181CSharpTestSource source,
1199CSharpTestSource source,
1207CSharpTestSource source,
1217CSharpTestSource source,
1225CSharpTestSource source,
1233CSharpTestSource source,
1249CSharpTestSource source,
1257CSharpTestSource source,
1270CSharpTestSource source,
1297CSharpTestSource source,
1310CSharpTestSource source,
1320CSharpTestSource source,
1469CSharpTestSource? source,
1474var trees = (source ?? CSharpTestSource.None).GetSyntaxTrees(parseOptions);
2087CSharpTestSource testSrc,
2138CSharpTestSource testSrc,
2173CSharpTestSource testSrc,
2193CSharpTestSource testSrc,
2231CSharpTestSource testSrc,
2251CSharpTestSource testSrc,
2289protected static CSharpCompilation CreateCompilationWithSpan(CSharpTestSource tree, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null)
2306protected static CSharpCompilation CreateCompilationWithMscorlibAndSpan(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null)
2338protected static CSharpCompilation CreateCompilationWithIndex(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null)
2349protected static CSharpCompilation CreateCompilationWithIndexAndRange(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null)
2360protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpan(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null)
2371protected static CSharpCompilation CreateCompilationWithSpanAndMemoryExtensions(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null, TargetFramework targetFramework = TargetFramework.NetCoreApp)
2389protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpanAndMemoryExtensions(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null, TargetFramework targetFramework = TargetFramework.NetCoreApp)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.UnitTests (9)
VBCSCompiler.UnitTests (3)