10 instantiations of CSharpTestSource
Microsoft.CodeAnalysis.CSharp.Test.Utilities (10)
206 references to CSharpTestSource
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)
39private static readonly SyntaxTree s_attributesTree = CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors);
41private static ImmutableArray<InterceptableLocation?> GetInterceptableLocations(CSharpTestSource source)
204var source = CSharpTestSource.Parse("""
220var interceptors = CSharpTestSource.Parse($$"""
232var attributesTree = CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, options: options);
1396var source = CSharpTestSource.Parse("""
2008var source = CSharpTestSource.Parse("""
2025var interceptors = CSharpTestSource.Parse($$"""
2112var source = CSharpTestSource.Parse("""
2141var interceptors = CSharpTestSource.Parse($$"""
2303var source = CSharpTestSource.Parse("""
2328var interceptors = CSharpTestSource.Parse($$"""
3560var sourceTree = CSharpTestSource.Parse("""
3591var interceptorTree = CSharpTestSource.Parse($$"""
3614var sourceTree = CSharpTestSource.Parse("""
3641var interceptorTree = CSharpTestSource.Parse($$"""
6176var source = CSharpTestSource.Parse("""
6193var interceptors = CSharpTestSource.Parse($$"""
6205comp = CreateCompilation([source, interceptors, s_attributesTree, CSharpTestSource.Parse(UnmanagedCallersOnlyAttributeDefinition, "UnmanagedCallersOnlyAttribute.cs", RegularWithInterceptors)]);
7322var source = CSharpTestSource.Parse("""
7339var interceptors = CSharpTestSource.Parse($$"""
7349var verifier = CompileAndVerify([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)], expectedOutput: "1");
7353interceptors = CSharpTestSource.Parse($$"""
7364verifier = CompileAndVerify([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)], expectedOutput: "1");
7371var tree = CSharpTestSource.Parse("""
7423var interceptors = CSharpTestSource.Parse($$"""
7434var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7455var interceptors = CSharpTestSource.Parse($$"""
7466var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7479var interceptors = CSharpTestSource.Parse($$"""
7490var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7501var interceptors = CSharpTestSource.Parse($$"""
7512var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7524var source = CSharpTestSource.Parse("""
7541var interceptors = CSharpTestSource.Parse($$"""
7552var comp1 = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7575var sourceTree1 = CSharpTestSource.Parse(source, path: "Program1.cs", options: RegularWithInterceptors);
7582var interceptors = CSharpTestSource.Parse($$"""
7595CSharpTestSource.Parse(source, path: "Program2.cs", options: RegularWithInterceptors),
7597CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7609var source = CSharpTestSource.Parse("""
7628var interceptors = CSharpTestSource.Parse($$"""
7638comp = CreateCompilation([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7650var source = CSharpTestSource.Parse("""
7684var interceptors = CSharpTestSource.Parse($$"""
7695var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]);
7707var tree = CSharpTestSource.Parse("""
7732var source = CSharpTestSource.Parse("""
7750var interceptors = CSharpTestSource.Parse($$"""
7774var source = CSharpTestSource.Parse("""
7796var interceptors = CSharpTestSource.Parse($$"""
7819var source = CSharpTestSource.Parse("""
7837var interceptors = CSharpTestSource.Parse($$"""
7860var source = CSharpTestSource.Parse("""
7878var interceptors = CSharpTestSource.Parse($$"""
7901var source = CSharpTestSource.Parse("""
7922var interceptors = CSharpTestSource.Parse($$"""
7944var source = CSharpTestSource.Parse($$"""
7965var interceptors = CSharpTestSource.Parse($$"""
7994var source = CSharpTestSource.Parse($$"""
8018var interceptors = CSharpTestSource.Parse($$"""
8045var source = CSharpTestSource.Parse("""
8064var interceptors = CSharpTestSource.Parse($$"""
8099var source = CSharpTestSource.Parse("""
8123var interceptors = CSharpTestSource.Parse($$"""
8158var source = CSharpTestSource.Parse("""
8183var interceptors = CSharpTestSource.Parse($$"""
8214var source = CSharpTestSource.Parse("""
8238var interceptors = CSharpTestSource.Parse($$"""
8269var source = CSharpTestSource.Parse("""
8293var interceptors = CSharpTestSource.Parse($$"""
8324var source = CSharpTestSource.Parse("""
8343var interceptors = CSharpTestSource.Parse($$"""
8374var source = CSharpTestSource.Parse("""
8401var interceptors = CSharpTestSource.Parse($$"""
8439var source = CSharpTestSource.Parse("""
8465var interceptors = CSharpTestSource.Parse($$"""
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (23)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (57)
CSharpTestBase.cs (40)
1305CSharpTestSource source,
1341CSharpTestSource source,
1377CSharpTestSource source,
1419CSharpTestSource source,
1455CSharpTestSource source,
1491CSharpTestSource source,
1570internal CompilationVerifier CompileAndVerifyFieldMarshal(CSharpTestSource source, Dictionary<string, byte[]> expectedBlobs, bool isField = true) =>
1580internal CompilationVerifier CompileAndVerifyFieldMarshal(CSharpTestSource source, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true) =>
1589=> CSharpTestSource.Parse(text, filename, options, encoding, checksumAlgorithm);
1625CSharpTestSource source,
1634CSharpTestSource source,
1648CSharpTestSource source,
1656CSharpTestSource source,
1674CSharpTestSource source,
1682CSharpTestSource source,
1692CSharpTestSource source,
1700CSharpTestSource source,
1708CSharpTestSource source,
1724CSharpTestSource source,
1732CSharpTestSource source,
1745CSharpTestSource source,
1772CSharpTestSource source,
1785CSharpTestSource source,
1795CSharpTestSource source,
1944CSharpTestSource? source,
1949var trees = (source ?? CSharpTestSource.None).GetSyntaxTrees(parseOptions);
2602CSharpTestSource testSrc,
2653CSharpTestSource testSrc,
2688CSharpTestSource testSrc,
2708CSharpTestSource testSrc,
2746CSharpTestSource testSrc,
2766CSharpTestSource testSrc,
2804protected static CSharpCompilation CreateCompilationWithSpan(CSharpTestSource tree, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2821protected static CSharpCompilation CreateCompilationWithMscorlibAndSpan(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2853protected static CSharpCompilation CreateCompilationWithIndex(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2864protected static CSharpCompilation CreateCompilationWithIndexAndRange(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2875protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpan(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
2886protected static CSharpCompilation CreateCompilationWithSpanAndMemoryExtensions(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null, TargetFramework targetFramework = TargetFramework.NetCoreApp)
2904protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpanAndMemoryExtensions(CSharpTestSource text, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null, TargetFramework targetFramework = TargetFramework.NetCoreApp)
3183internal static CSharpCompilation CreateRuntimeAsyncCompilation(CSharpTestSource source, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.UnitTests (9)
VBCSCompiler.UnitTests (3)