10 instantiations of CSharpTestSource
Microsoft.CodeAnalysis.CSharp.Test.Utilities (10)
208 references to CSharpTestSource
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
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)
30private static readonly SyntaxTree s_attributesTree = CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors);
32private static ImmutableArray<InterceptableLocation?> GetInterceptableLocations(CSharpTestSource source)
195var source = CSharpTestSource.Parse("""
211var interceptors = CSharpTestSource.Parse($$"""
223var attributesTree = CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, options: options);
1387var source = CSharpTestSource.Parse("""
1999var source = CSharpTestSource.Parse("""
2016var interceptors = CSharpTestSource.Parse($$"""
2103var source = CSharpTestSource.Parse("""
2132var interceptors = CSharpTestSource.Parse($$"""
2294var source = CSharpTestSource.Parse("""
2319var interceptors = CSharpTestSource.Parse($$"""
3551var sourceTree = CSharpTestSource.Parse("""
3582var interceptorTree = CSharpTestSource.Parse($$"""
3605var sourceTree = CSharpTestSource.Parse("""
3632var interceptorTree = CSharpTestSource.Parse($$"""
6167var source = CSharpTestSource.Parse("""
6184var interceptors = CSharpTestSource.Parse($$"""
6196comp = CreateCompilation([source, interceptors, s_attributesTree, CSharpTestSource.Parse(UnmanagedCallersOnlyAttributeDefinition, "UnmanagedCallersOnlyAttribute.cs", RegularWithInterceptors)]);
7313var source = CSharpTestSource.Parse("""
7330var interceptors = CSharpTestSource.Parse($$"""
7340var verifier = CompileAndVerify([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)], expectedOutput: "1");
7344interceptors = CSharpTestSource.Parse($$"""
7355verifier = CompileAndVerify([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)], expectedOutput: "1");
7362var tree = CSharpTestSource.Parse("""
7414var interceptors = CSharpTestSource.Parse($$"""
7425var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7446var interceptors = CSharpTestSource.Parse($$"""
7457var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7470var interceptors = CSharpTestSource.Parse($$"""
7481var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7492var interceptors = CSharpTestSource.Parse($$"""
7503var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7515var source = CSharpTestSource.Parse("""
7532var interceptors = CSharpTestSource.Parse($$"""
7543var comp1 = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7566var sourceTree1 = CSharpTestSource.Parse(source, path: "Program1.cs", options: RegularWithInterceptors);
7573var interceptors = CSharpTestSource.Parse($$"""
7586CSharpTestSource.Parse(source, path: "Program2.cs", options: RegularWithInterceptors),
7588CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7600var source = CSharpTestSource.Parse("""
7619var interceptors = CSharpTestSource.Parse($$"""
7629comp = CreateCompilation([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7641var source = CSharpTestSource.Parse("""
7675var interceptors = CSharpTestSource.Parse($$"""
7686var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7698var tree = CSharpTestSource.Parse("""
7723var source = CSharpTestSource.Parse("""
7741var interceptors = CSharpTestSource.Parse($$"""
7765var source = CSharpTestSource.Parse("""
7787var interceptors = CSharpTestSource.Parse($$"""
7810var source = CSharpTestSource.Parse("""
7828var interceptors = CSharpTestSource.Parse($$"""
7851var source = CSharpTestSource.Parse("""
7869var interceptors = CSharpTestSource.Parse($$"""
7892var source = CSharpTestSource.Parse("""
7913var interceptors = CSharpTestSource.Parse($$"""
7935var source = CSharpTestSource.Parse($$"""
7956var interceptors = CSharpTestSource.Parse($$"""
7985var source = CSharpTestSource.Parse($$"""
8009var interceptors = CSharpTestSource.Parse($$"""
8036var source = CSharpTestSource.Parse("""
8055var interceptors = CSharpTestSource.Parse($$"""
8090var source = CSharpTestSource.Parse("""
8114var interceptors = CSharpTestSource.Parse($$"""
8149var source = CSharpTestSource.Parse("""
8174var interceptors = CSharpTestSource.Parse($$"""
8205var source = CSharpTestSource.Parse("""
8229var interceptors = CSharpTestSource.Parse($$"""
8260var source = CSharpTestSource.Parse("""
8284var interceptors = CSharpTestSource.Parse($$"""
8315var source = CSharpTestSource.Parse("""
8334var interceptors = CSharpTestSource.Parse($$"""
8365var source = CSharpTestSource.Parse("""
8392var interceptors = CSharpTestSource.Parse($$"""
8430var source = CSharpTestSource.Parse("""
8456var interceptors = CSharpTestSource.Parse($$"""
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (23)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (57)
CSharpTestBase.cs (40)
1354CSharpTestSource source,
1390CSharpTestSource source,
1426CSharpTestSource source,
1468CSharpTestSource source,
1504CSharpTestSource source,
1540CSharpTestSource source,
1619internal CompilationVerifier CompileAndVerifyFieldMarshal(CSharpTestSource source, Dictionary<string, byte[]> expectedBlobs, bool isField = true) =>
1629internal CompilationVerifier CompileAndVerifyFieldMarshal(CSharpTestSource source, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true) =>
1638=> CSharpTestSource.Parse(text, filename, options, encoding, checksumAlgorithm);
1674CSharpTestSource source,
1683CSharpTestSource source,
1697CSharpTestSource source,
1705CSharpTestSource source,
1723CSharpTestSource source,
1731CSharpTestSource source,
1741CSharpTestSource source,
1749CSharpTestSource source,
1757CSharpTestSource source,
1773CSharpTestSource source,
1781CSharpTestSource source,
1794CSharpTestSource source,
1821CSharpTestSource source,
1834CSharpTestSource source,
1844CSharpTestSource source,
1993CSharpTestSource? source,
1998var trees = (source ?? CSharpTestSource.None).GetSyntaxTrees(parseOptions);
2651CSharpTestSource testSrc,
2702CSharpTestSource testSrc,
2737CSharpTestSource testSrc,
2757CSharpTestSource testSrc,
2795CSharpTestSource testSrc,
2815CSharpTestSource testSrc,
2853protected static CSharpCompilation CreateCompilationWithSpan(CSharpTestSource tree, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2870protected static CSharpCompilation CreateCompilationWithMscorlibAndSpan(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2902protected static CSharpCompilation CreateCompilationWithIndex(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2913protected static CSharpCompilation CreateCompilationWithIndexAndRange(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2924protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpan(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2935protected static CSharpCompilation CreateCompilationWithSpanAndMemoryExtensions(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null, TargetFramework targetFramework = TargetFramework.NetCoreApp)
2953protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpanAndMemoryExtensions(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null, TargetFramework targetFramework = TargetFramework.NetCoreApp)
3232internal static CSharpCompilation CreateRuntimeAsyncCompilation(CSharpTestSource source, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null, bool includeSuppression = true)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.UnitTests (9)
VBCSCompiler.UnitTests (3)