241 references to RegularWithInterceptors
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (241)
Semantics\InterceptorsTests.cs (241)
38private static readonly SyntaxTree s_attributesTree = CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors); 73var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.DebugExe.WithWarningLevel(8)); 76comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.DebugExe.WithWarningLevel(9)); 82comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 135var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 430var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 462var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor 1"); 494var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 531var verifier = CompileAndVerify(new[] { (source1, "Program.cs"), (source2, "Other.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "interceptor 1"); 570var verifier = CompileAndVerify([source, (interceptors, "Interceptors.cs")], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 622var comp1 = CreateCompilation((source1, "Program.cs"), parseOptions: RegularWithInterceptors); 628var comp2Verifier = CompileAndVerify((source2, "Program.cs"), references: new[] { comp1.ToMetadataReference() }, parseOptions: RegularWithInterceptors, expectedOutput: "1"); 634comp2Verifier = CompileAndVerify((source2, "Program.cs"), references: new[] { comp1.EmitToImageReference() }, parseOptions: RegularWithInterceptors, expectedOutput: "1"); 670var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site"); 706var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site"); 742var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site"); 779var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 830var comp = CreateCompilation(new[] { source0, source1, source2, s_attributesSource }, parseOptions: RegularWithInterceptors); 866var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 913var comp = CreateCompilation(new[] { (source0, "Program.cs"), (source1, "File1.cs"), (source2, "File2.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 958var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 989var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1037var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "CD"); 1077var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1112var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1150var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 1184var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true)); 1187var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1221var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 1253var comp0 = CreateCompilation(new[] { (source0, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 1275var comp1 = CompileAndVerify(new[] { (source1, "Program.cs") }, new[] { comp0.ToMetadataReference() }, parseOptions: RegularWithInterceptors, expectedOutput: "interceptable 1"); 1281comp1 = CompileAndVerify(new[] { (source1, "Program.cs") }, new[] { comp0.EmitToImageReference() }, parseOptions: RegularWithInterceptors, expectedOutput: "interceptable 1"); 1313var compilation = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 1346var compilation = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1386var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 1413""", "Program.cs", options: RegularWithInterceptors); 1458var compilation = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1508var compilation = CreateCompilation([(source, "Program.cs"), interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1556var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site"); 1592var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site"); 1625var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1657var verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 1692var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1731var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor Hello World"); 1765var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 1801var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1234"); 1835var verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 1868var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 1905var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call siteinterceptable call site"); 1943var comp1 = CreateCompilation(new[] { (source1, "File1.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 1946var verifier = CompileAndVerify((source2, "Program.cs"), references: new[] { comp1.ToMetadataReference() }, parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site"); 1990var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 2017""", "Program.cs", RegularWithInterceptors); 2044""", "Interceptors.cs", RegularWithInterceptors); 2085var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, options: TestOptions.UnsafeDebugExe); 2125""", "Program.cs", options: RegularWithInterceptors); 2150""", "Interceptors.cs", RegularWithInterceptors); 2206var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.UnsafeDebugExe); 2253var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors); 2292var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors); 2319""", "Program.cs", options: RegularWithInterceptors); 2335""", "Interceptors.cs", options: RegularWithInterceptors); 2379var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 2419var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "12"); 2452var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 2503var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 2540var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 2583var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "111222"); 2614var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors); 2655var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1122"); 2698var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1a1a2b2b"); 2735var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors); 2778var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1a2b"); 2824var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1a1a2b2b"); 2871var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "123123456456"); 2915var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "123123456456"); 2941var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors); 2977var verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 3000var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3045var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3084var comp = CreateCompilation(new[] { (source, PlatformInformation.IsWindows ? @"C:\Users\me\projects\Program.cs" : "/Users/me/projects/Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3122var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3160var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3201var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3254var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3305var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3344var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3387var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3432var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3474var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3515var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 3577""", options: RegularWithInterceptors); 3599""", options: RegularWithInterceptors); 3631""", options: RegularWithInterceptors); 3649""", options: RegularWithInterceptors); 3690var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors); 3732var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors); 3773var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 3811var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, options: WithNullableEnable()); 3853var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: WithNullableEnable()); 3863comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: WithNullableDisable()); 3911var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 3977var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "111222333"); 4044var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1122"); 4083var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors); 4117var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 4151var verifier = CompileAndVerify(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original"); 4154verifier = CompileAndVerify(new[] { source, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Intercepted"); 4188var verifier = CompileAndVerify(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original"); 4193var comp = CreateCompilation(new[] { source, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors); 4230var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, options: WithNullableEnable()); 4275var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 4318var verifier = CompileAndVerify([source, interceptor, s_attributesSource, UnscopedRefAttributeDefinition], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 4353var comp = CreateCompilation([source, interceptor, s_attributesSource, UnscopedRefAttributeDefinition], parseOptions: RegularWithInterceptors, options: WithNullableEnable()); 4433var verifier = CompileAndVerify(CreateEmptyCompilation((source, "Program.cs"), parseOptions: RegularWithInterceptors, options: WithNullableEnable()), verify: Verification.Skipped); 4526var verifier = CompileAndVerify(CreateEmptyCompilation((source, "Program.cs"), parseOptions: RegularWithInterceptors, options: WithNullableEnable()), verify: Verification.Skipped); 4586var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "123456"); 4632var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 4685var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "123456"); 4740parseOptions: RegularWithInterceptors, 4795parseOptions: RegularWithInterceptors, 4853parseOptions: RegularWithInterceptors, 4884var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "interceptor 1"); 4917var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 4953var verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 4982var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 5012var verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 5040var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors); 5070var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, verify: Verification.Skipped); 5114var verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 5150var verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1"); 5178var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5212var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5245var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5290parseOptions: RegularWithInterceptors, 5320parseOptions: RegularWithInterceptors, 5356parseOptions: RegularWithInterceptors, 5390parseOptions: RegularWithInterceptors, 5462parseOptions: RegularWithInterceptors, 5499parseOptions: RegularWithInterceptors, 5534parseOptions: RegularWithInterceptors, 5576parseOptions: RegularWithInterceptors, 5611parseOptions: RegularWithInterceptors, 5644parseOptions: RegularWithInterceptors, 5675var comp = CreateCompilation(new[] { (source, @"src\Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5709var verifier = CompileAndVerify(new[] { (source, @"C:\src\Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "1"); 5717var comp = CreateCompilation(new[] { (source, @"/src/Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5753var verifier = CompileAndVerify(new[] { (source, @"C:/src\Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "1"); 5761var comp = CreateCompilation(new[] { (source, @"/src/Program.`cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5799var verifier = CompileAndVerify(new[] { (source, PlatformInformation.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2, PlatformInformation.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "1"); 5835var comp = CreateCompilation(new[] { (source, PlatformInformation.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2, PlatformInformation.IsWindows ? @"Generator\Generated.cs" : "Generator/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5873var comp = CreateCompilation(new[] { (source, PlatformInformation.IsWindows ? @"src\Program.cs" : "src/Program.cs"), (source2, PlatformInformation.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5912var comp = CreateCompilation(new[] { (source, PlatformInformation.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2, PlatformInformation.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5946var comp = CreateCompilation(new[] { (source, PlatformInformation.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2, PlatformInformation.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 5980var comp = CreateCompilation(new[] { (source, PlatformInformation.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2, PlatformInformation.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors); 6017parseOptions: RegularWithInterceptors, 6058parseOptions: RegularWithInterceptors, 6118parseOptions: RegularWithInterceptors, 6131parseOptions: RegularWithInterceptors, 6165var comp = CreateCompilation([source, interceptors, s_attributesSource, UnmanagedCallersOnlyAttributeDefinition], parseOptions: RegularWithInterceptors); 6186""", "Program.cs", RegularWithInterceptors); 6202""", "Interceptors.cs", RegularWithInterceptors); 6204comp = CreateCompilation([source, interceptors, s_attributesTree, CSharpTestSource.Parse(UnmanagedCallersOnlyAttributeDefinition, "UnmanagedCallersOnlyAttribute.cs", RegularWithInterceptors)]); 6241var verifier = CompileAndVerify(new[] { program, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Second"); 6258verifier = CompileAndVerify(new[] { program, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Wrong ValueSecond"); 6298var verifier = CompileAndVerify(new[] { program, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "False"); 6317verifier = CompileAndVerify(new[] { program, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "True"); 6368var verifier = CompileAndVerify([program, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "False"); 6384verifier = CompileAndVerify([program, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "True"); 6448var verifier = CompileAndVerify(new[] { program, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original"); 6461verifier = CompileAndVerify(new[] { program, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Interceptor"); 6510var verifier = CompileAndVerify(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original"); 6513verifier = CompileAndVerify(new[] { source, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Interceptor"); 6552var verifier = CompileAndVerify(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original"); 6555verifier = CompileAndVerify(new[] { source, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Interceptor"); 6593var comp = CreateCompilation(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors); 6596comp = CreateCompilation(new[] { source, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors); 6640var comp = CreateCompilation(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors); 6643comp = CreateCompilation(new[] { source, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors); 6682var comp = CreateCompilation(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors); 6685comp = CreateCompilation(new[] { source, interceptor, s_attributesSource }, parseOptions: RegularWithInterceptors); 6716var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: RegularWithInterceptors); 6765var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: RegularWithInterceptors); 7331""", "Program.cs", RegularWithInterceptors); 7346""", "Interceptors.cs", RegularWithInterceptors); 7348var verifier = CompileAndVerify([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)], expectedOutput: "1"); 7361""", "Interceptors.cs", RegularWithInterceptors); 7363verifier = CompileAndVerify([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)], expectedOutput: "1"); 7381""".NormalizeLineEndings(), "path/to/Program.cs", RegularWithInterceptors); 7431""", "Interceptors.cs", RegularWithInterceptors); 7433var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]); 7463""", "Interceptors.cs", RegularWithInterceptors); 7465var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]); 7487""", "Interceptors.cs", RegularWithInterceptors); 7489var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]); 7509""", "Interceptors.cs", RegularWithInterceptors); 7511var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]); 7533""", "Program.cs", RegularWithInterceptors); 7549""", "Interceptors.cs", RegularWithInterceptors); 7551var comp1 = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]); 7574var sourceTree1 = CSharpTestSource.Parse(source, path: "Program1.cs", options: RegularWithInterceptors); 7590""", "Interceptors.cs", RegularWithInterceptors); 7594CSharpTestSource.Parse(source, path: "Program2.cs", options: RegularWithInterceptors), 7596CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]); 7620""", "Program.cs", RegularWithInterceptors); 7635""", "Interceptors.cs", RegularWithInterceptors); 7637comp = CreateCompilation([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]); 7661""", "Program.cs", RegularWithInterceptors); 7692""", "Interceptors.cs", RegularWithInterceptors); 7694var comp = CreateCompilation([interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)]); 7716""".NormalizeLineEndings(), path: null, RegularWithInterceptors); 7742""", "Program.cs", RegularWithInterceptors); 7758""", "Interceptors.cs", RegularWithInterceptors); 7788""", "Program.cs", RegularWithInterceptors); 7803""", "Interceptors.cs", RegularWithInterceptors); 7829""", "Program.cs", RegularWithInterceptors); 7845""", "Interceptors.cs", RegularWithInterceptors); 7870""", "Program.cs", RegularWithInterceptors); 7885""", "Interceptors.cs", RegularWithInterceptors); 7914""", "Program.cs", RegularWithInterceptors); 7927""", "Interceptors.cs", RegularWithInterceptors); 7955""", "Program.cs", RegularWithInterceptors); 7973""", "Interceptors.cs", RegularWithInterceptors); 8008""", "Program.cs", RegularWithInterceptors); 8026""", "Interceptors.cs", RegularWithInterceptors); 8056""", "Program.cs", RegularWithInterceptors); 8071""", "Interceptors.cs", RegularWithInterceptors); 8115""", "Program.cs", RegularWithInterceptors); 8130""", "Interceptors.cs", RegularWithInterceptors); 8175""", "Program.cs", RegularWithInterceptors); 8190""", "Interceptors.cs", RegularWithInterceptors); 8230""", "Program.cs", RegularWithInterceptors); 8245""", "Interceptors.cs", RegularWithInterceptors); 8285""", "Program.cs", RegularWithInterceptors); 8300""", "Interceptors.cs", RegularWithInterceptors); 8335""", "Program.cs", RegularWithInterceptors); 8350""", "Interceptors.cs", RegularWithInterceptors); 8393""", "Program.cs", RegularWithInterceptors); 8406""", "Interceptors.cs", RegularWithInterceptors); 8452""", "Program.cs", RegularWithInterceptors); 8472""", "Interceptors.cs", RegularWithInterceptors);