1817 references to Regular9
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (208)
CodeGen\CodeGenAsyncIteratorTests.cs (6)
3742var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 6991var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7274var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: options, parseOptions: TestOptions.Regular9); 7617var comp = CreateCompilationWithAsyncIterator(new[] { source.Replace("SOURCETOCANCEL", sourceToCancel), EnumeratorCancellationAttributeType }, options: options, parseOptions: TestOptions.Regular9); 7710var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, TestOptions.DebugExe, TestOptions.Regular9); 8118var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (4)
116var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 522var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 766var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 820var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenAwaitForeachTests.cs (78)
382var comp = CreateCompilationWithMscorlib46(source, parseOptions: useCsharp8 ? TestOptions.Regular8 : TestOptions.Regular9); 6243CreateCompilation(source, parseOptions: TestOptions.Regular9) 6268CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9) 6295CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9) 6322var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6346var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6367CreateCompilation(source, parseOptions: TestOptions.Regular9) 6400CreateCompilation(source, parseOptions: TestOptions.Regular9) 6433var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6476var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6506var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6536var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6568var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 6604CreateCompilation(source, parseOptions: TestOptions.Regular9) 6640CreateCompilation(source, parseOptions: TestOptions.Regular9) 6676CreateCompilation(source, parseOptions: TestOptions.Regular9) 6713CreateCompilation(source, parseOptions: TestOptions.Regular9) 6754var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6789var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6820var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6852var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6882CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9) 6918CreateCompilation(source, parseOptions: TestOptions.Regular9) 6951var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6982var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7012var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7043var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7073var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7103var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7133var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7169parseOptions: TestOptions.Regular9); 7201var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7237var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7270var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7308var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7352var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7388var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7439var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7472CreateCompilationWithCSharp(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 7509var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7549CreateCompilation(source, parseOptions: TestOptions.Regular9) 7589CreateCompilation(source, parseOptions: TestOptions.Regular9) 7629var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7663CreateCompilation(source, parseOptions: TestOptions.Regular9) 7707CreateCompilation(source, parseOptions: TestOptions.Regular9) 7749var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7785CreateCompilation(source, parseOptions: TestOptions.Regular9) 7825var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7859CreateCompilation(source, parseOptions: TestOptions.Regular9) 7896var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7926CreateCompilation(source, parseOptions: TestOptions.Regular9) 7963var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7993var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 8026var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 8059var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 8195var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8225var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8254CreateCompilation(source, parseOptions: TestOptions.Regular9) 8298CreateCompilation(source, parseOptions: TestOptions.Regular9) 8337var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8374var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8407var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8440var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8474var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8507var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8537var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8573var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8620var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8653CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9) 8687var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8738var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8787var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8838CreateCompilation(source, parseOptions: TestOptions.Regular9) 8892CreateCompilation(source, parseOptions: TestOptions.Regular9) 8932var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8967var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8998CreateCompilation(source, parseOptions: TestOptions.Regular9) 9037var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenDeconstructTests.cs (5)
5119var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe, references: s_valueTupleRefs); 6199var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6746var compCSharp9 = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7260var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 10004CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
CodeGen\CodeGenExprLambdaTests.cs (1)
2110parseOptions: TestOptions.Regular9,
CodeGen\CodeGenForEachTests.cs (80)
2412CreateCompilation(source, parseOptions: TestOptions.Regular9) 2436CreateCompilation(source, parseOptions: TestOptions.Regular9) 2462CreateCompilation(source, parseOptions: TestOptions.Regular9) 2485CreateCompilation(source, parseOptions: TestOptions.Regular9) 2511CompileAndVerify(source, parseOptions: TestOptions.Regular9) 2573CompileAndVerify(source, parseOptions: TestOptions.Regular9) 2631CreateCompilation(source, parseOptions: TestOptions.Regular9) 2663CreateCompilation(source, parseOptions: TestOptions.Regular9) 2695CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 2722CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 2749CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 2776CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 2805CreateCompilation(source, parseOptions: TestOptions.Regular9) 2840CreateCompilation(source, parseOptions: TestOptions.Regular9) 2875CreateCompilation(source, parseOptions: TestOptions.Regular9) 2910CreateCompilation(source, parseOptions: TestOptions.Regular9) 2947CreateCompilation(source, parseOptions: TestOptions.Regular9) 2987CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3019CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3047CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "System.Char"); 3074CreateCompilation(source, parseOptions: TestOptions.Regular9) 3106CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3134CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3161CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3189CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3216CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3243CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3270CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3298var comp = CreateCompilationWithSpan(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3329var comp = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3359CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3387CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"1.1 3412CreateCompilation(source, parseOptions: TestOptions.Regular9) 3443CreateCompilation(source, parseOptions: TestOptions.Regular9) 3478CreateCompilation(source, parseOptions: TestOptions.Regular9) 3514CreateCompilation(source, parseOptions: TestOptions.Regular9) 3557CompileAndVerify(source, parseOptions: TestOptions.Regular9, 3591CreateCompilation(source, parseOptions: TestOptions.Regular9) 3645CompileAndVerify(source, parseOptions: TestOptions.Regular9, 3684var comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 3717CreateCompilation(source, parseOptions: TestOptions.Regular9) 3756CreateCompilation(source, parseOptions: TestOptions.Regular9) 3795CreateCompilation(source, parseOptions: TestOptions.Regular9) 3834CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3865CreateCompilation(source, parseOptions: TestOptions.Regular9) 3908CreateCompilation(source, parseOptions: TestOptions.Regular9) 3949CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3982CreateCompilation(source, parseOptions: TestOptions.Regular9) 4021CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4052CreateCompilation(source, parseOptions: TestOptions.Regular9) 4088CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "23"); 4116CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4143CreateCompilation(source, parseOptions: TestOptions.Regular9) 4177CreateCompilation(source, parseOptions: TestOptions.Regular9) 4209CreateCompilation(source, parseOptions: TestOptions.Regular9) 4241CreateCompilation(source, parseOptions: TestOptions.Regular9) 4278CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4306CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4478CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4505CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4531CreateCompilation(source, parseOptions: TestOptions.Regular9) 4573CreateCompilation(source, parseOptions: TestOptions.Regular9) 4611CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4641CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4671CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4702CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"123Disposed") 4761CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"123Disposed") 4820CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"123") 4869CompileAndVerify(source, parseOptions: TestOptions.Regular9, verify: Verification.FailsILVerify, expectedOutput: @"123Disposed") 4927CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123") 4968CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4998CreateCompilation(source, parseOptions: TestOptions.Regular9) 5046CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 5092CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 5136CreateCompilation(source, parseOptions: TestOptions.Regular9) 5189CreateCompilation(source, parseOptions: TestOptions.Regular9) 5229CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 5262CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 5290CreateCompilation(source, parseOptions: TestOptions.Regular9) 5328CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123123");
CodeGen\CodeGenLocalFunctionTests.cs (21)
5229parseOptions: TestOptions.Regular9, 5278parseOptions: TestOptions.Regular9, 5319parseOptions: TestOptions.Regular9, 5352parseOptions: TestOptions.Regular9, 5386parseOptions: TestOptions.Regular9, 5419parseOptions: TestOptions.Regular9, 5452var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5524parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG"), 5531parseOptions: TestOptions.Regular9, 5565CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(); 5567CreateCompilation(source, parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG")).VerifyDiagnostics(); 5590CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5595CreateCompilation(source, parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG")).VerifyDiagnostics(); 5622parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG"), 5628parseOptions: TestOptions.Regular9, 5674parseOptions: TestOptions.Regular9); 5740parseOptions: TestOptions.Regular9, 5815parseOptions: TestOptions.Regular9, 5890parseOptions: TestOptions.Regular9, 5958parseOptions: TestOptions.Regular9,
CodeGen\CodeGenTests.cs (1)
14810parseOptions: TestOptions.Regular9);
CodeGen\CodeGenTupleEqualityTests.cs (3)
1335var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1649var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1995var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenTupleTest.cs (1)
5408CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
CodeGen\SwitchTests.cs (2)
10802var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 10867compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9)
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (6)
2569parseOptions: TestOptions.Regular9); 2599parseOptions: TestOptions.Regular9); 2646parseOptions: TestOptions.Regular9); 2923options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 3618var verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3622verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (93)
Emit\EditAndContinue\SymbolMatcherTests.cs (3)
1211var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1245var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1296var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9);
Emit\NumericIntPtrTests.cs (90)
123var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 173var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 266comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 365comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 485comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 560comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 670comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 767var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular9); 842comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 933var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 936comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 941comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 944comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 995var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 998comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1003comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1006comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1024comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1188var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1191comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1196comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1199comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1234comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1252var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1278comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1296var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1328var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1363CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1432var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1491var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1520var comp = CreateCompilation("", parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1625var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1646comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ? TestOptions.Regular9 : TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1738var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1757comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1913var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2048var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2150var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2223var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2251comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2292comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2407var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2457var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2598var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2776var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2796var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2811var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2823comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2840var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2855comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2877var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2919var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2952var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3052var comp = CreateCompilation(new[] { sourceA, sourceB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3055comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3059comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3062comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3125var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3293var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6003var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6240var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6613var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6847var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6897var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 7020var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8121var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8182var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8612var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8688var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9013var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9032comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9060var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9245var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9298var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9327var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9362var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9427var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9508var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9646var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9702var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9832var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9904var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 9917var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9939var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 10681comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (417)
Attributes\AttributeTests.cs (10)
7999var comp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, parseOptions: TestOptions.Regular9); 10242comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10292comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10318comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10344comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10466var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions: TestOptions.Regular9); 10469comp2 = CreateCompilation(source2, references: new[] { comp1.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 10508var comp = CreateCompilationWithIL(source, il, parseOptions: TestOptions.Regular9); 10537var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions: TestOptions.Regular9); 10540comp2 = CreateCompilation(source2, references: new[] { comp1.EmitToImageReference() }, parseOptions: TestOptions.Regular9);
Attributes\AttributeTests_CallerInfoAttributes.cs (18)
679var comp1 = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions: TestOptions.Regular9); 767var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 796var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 854var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 924var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1014var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1321var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1613var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1648var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1815var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1849var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1913var compilation = CreateCompilationWithIL(source, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2181var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2891var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3648parseOptions: TestOptions.Regular9); 3694parseOptions: TestOptions.Regular9); 3743parseOptions: TestOptions.Regular9); 4211SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.Regular9, path: @"C:\filename", encoding: Encoding.UTF8)
Attributes\AttributeTests_Experimental.cs (1)
261var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { DeprecatedAttributeSource, ExperimentalAttributeSource, source }, parseOptions: TestOptions.Regular9);
Attributes\AttributeTests_MarshalAs.cs (1)
1449CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Attributes\AttributeTests_NativeInteger.cs (43)
71comp = CreateCompilation(source, references: new[] { ref0 }, parseOptions: TestOptions.Regular9); 102var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 128var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 168comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular9); 204var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 266comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 346comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 429comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 506comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 612comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 722comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 770var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 787var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 815var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 844comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 857comp = CreateCompilation(source3, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 876var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 893var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 909var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 927var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 944var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 966var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 986var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1002var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1030var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1080parseOptions: TestOptions.Regular9, 1104parseOptions: TestOptions.Regular9, 1127parseOptions: TestOptions.Regular9, 1151parseOptions: TestOptions.Regular9, 1287var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1333var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1357var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1375var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 1397comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1413var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions: TestOptions.Regular9); 1421comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9); 1445parseOptions: TestOptions.Regular9.WithNullablePublicOnly()); 1460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1488var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1513", options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9, symbolValidator: symbolValidator); 1558", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, symbolValidator: symbolValidator);
Attributes\AttributeTests_Nullable.cs (1)
2585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Attributes\AttributeTests_Security.cs (1)
766var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9);
Attributes\AttributeTests_WellKnownAttributes.cs (7)
5761parseOptions: TestOptions.Regular9, 10955var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 10997var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11039var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11081var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11123var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11165var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
Diagnostics\DiagnosticAnalyzerTests.cs (2)
2458var compilation = CreateCompilationWithMscorlib461(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3140var compilation = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9);
FlowAnalysis\FlowDiagnosticTests.cs (3)
933CreateCompilation(program, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1322var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1350var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9);
FlowAnalysis\RegionAnalysisTests.cs (3)
5525var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5566var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5615var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "42");
RefReadonlyParameterTests.cs (2)
2250CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2287CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Semantics\OutVarTests.cs (49)
23268var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 23460var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 23729var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 24073var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 24362var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 24887var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25353var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25591var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25716var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25903var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26060var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26306var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26449var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26580var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26724var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26915var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27046var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27189var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27342var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27549var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27726var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27939var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28117var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28331var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28482var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28739options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28896var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29047var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29259var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29435var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29580var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 29728options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29929options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30166var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30338var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30723var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30894var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31258var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31431var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31776var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31863var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31953var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 32043var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 33760var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 33858var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 33957var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34055var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34140var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34196var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
Semantics\PatternMatchingTests_Global.cs (42)
100var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 222var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 399var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 551var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 781var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 919var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1045var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1177var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1351var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1477var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1615var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1763var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1962var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2133var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2336var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2508var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2710var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2856var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3101options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3251var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3397var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3599var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3770var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4001options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4199options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4424var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4591var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4934var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5100var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5431var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5616var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5949var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6036var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6121var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6207var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6571var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6746var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7000var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7323var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7594var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 8089var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 8543var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9);
Semantics\PatternMatchingTests3.cs (1)
1997var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\PatternMatchingTests4.cs (1)
90var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\PatternMatchingTests5.cs (1)
1595var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\RecordTests.cs (231)
104comp = CreateCompilation(src2, parseOptions: TestOptions.Regular9); 110comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 228comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 780var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 855var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 1190var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2423parseOptions: TestOptions.Regular9, 2468var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2483var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2618var comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 2700var comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3414var comp = CreateCompilationWithIL(src, il, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3633var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3736var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3849var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3962var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4074var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4187var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4211var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4236var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, assemblyName: "Clone_12", parseOptions: TestOptions.Regular9).EmitToImageReference(); 4242var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4256var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9); 4271var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4277var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, assemblyName: "Clone_13", references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4283var comp3Ref = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp2Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4295var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9); 4311var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9); 4341var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4366var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, assemblyName: "Clone_15", parseOptions: TestOptions.Regular9).EmitToImageReference(); 4372var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4386var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9); 4428var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4434var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, assemblyName: "Clone_16", references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4440var comp3Ref = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp2Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4452var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9); 4477var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9); 4595var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4698var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4898var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4916var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 4991var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5068var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5235var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5267var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5453var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5508var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5547var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5588var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5654var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5717var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5766var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5788var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5883var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9, options: TestOptions.DebugExe); 6128var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6152var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6176var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6336var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6405var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6477var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6549var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6621var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6699var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6761var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6845var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6994var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7004comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7082var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7160var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7271parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 7300var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7320var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 7487var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7587var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7612var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 8813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9807comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 9925var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10585comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 10796var comp = CreateCompilation(new[] { sourceA, sourceB, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 10826comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 10874comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 10958var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11029var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11119var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11331var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 11545var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 11781var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12070var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12196var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 12281var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12360var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12465var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12522var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 12577var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 12634var compB = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? sourceB : new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.NetLatest); 12686var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12720var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 12903var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 12946var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13004var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13059var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13181var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13221var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13308var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 13321var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions: TestOptions.Regular9); 13340var compA = CreateCompilation(new[] { sourceA, IsExternalInitTypeDefinition }, assemblyName: "AssemblyA", parseOptions: TestOptions.Regular9); 13346var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB"); 13355var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB"); 13358var compB2 = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB2"); 13500var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 13587var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 13599var comp2 = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 13672var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 13852parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13931parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13980var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14006var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14039var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14072var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 14449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15722var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 15934var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16040var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16140var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16240var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16290comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 16472var comp = CreateCompilationWithIL(new[] { source1, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16479comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16486comp = CreateCompilationWithIL(new[] { source1 + source3, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16493comp = CreateCompilationWithIL(new[] { source1 + source4, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16500comp = CreateCompilationWithIL(new[] { source2 + source3, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16507comp = CreateCompilationWithIL(new[] { source2 + source4, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16607var comp = CreateCompilationWithIL(new[] { source1, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16618comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16718var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16729comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16966var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16977comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17078var comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17185var comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17240comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 17336comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 17431comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 17581var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17681var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17787var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17984var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 18038var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18112var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18147var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18189var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18223var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18259var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18363var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18390var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18416var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18454var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18483var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18507var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18580var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18613var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18652var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18688var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18790var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18821var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18861var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18905var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18949var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18972var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19020var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19093var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19161var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19191var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19458var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19499var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19626var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19745var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19955var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 20031var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 20062var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22524var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22693var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22806var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22912var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23019var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23366var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23533var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23567var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23714var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23754var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23805comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 23831var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23893var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23909var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23929var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23998var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24058var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24116var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24179var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24282comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 24347comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 24418comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 24502comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 24615var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24869var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24914var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24941var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24961var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24998var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25032var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25097parseOptions: TestOptions.Regular9, 25157parseOptions: TestOptions.Regular9, 25234parseOptions: TestOptions.Regular9, 25291parseOptions: TestOptions.Regular9, 25366parseOptions: TestOptions.Regular9, 25450parseOptions: TestOptions.Regular9, 25520parseOptions: TestOptions.Regular9, 25563var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, NotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 25588parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe, verify: Verification.Skipped /* init-only */); 25611var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 27691var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 29241var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29475var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29645var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 30193var compB = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (20)
IOperation\FunctionPointerOperations.cs (1)
19return CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
IOperation\IOperationTests_IForEachLoopStatement.cs (17)
1514VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions: TestOptions.Regular9); 1567VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions: TestOptions.Regular9); 1613VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions: TestOptions.Regular9); 1672VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions: TestOptions.Regular9); 1725var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1780var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1827var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1894var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 4680VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular9); 4811VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular9); 4896VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular9); 5066VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular9); 5196var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5328var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5414var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5585var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 6654var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
IOperation\IOperationTests_IObjectCreationExpression.cs (2)
18private static readonly CSharpParseOptions ImplicitObjectCreationOptions = TestOptions.Regular9; 2227VerifyOperationTreeAndDiagnosticsForTest<InitializerExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.Regular9);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (803)
Semantics\AccessCheckTests.cs (1)
1516}", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
Semantics\AnonymousFunctionTests.cs (9)
1190parseOptions: TestOptions.Regular9, 1318var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1357var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1377var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1398var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1446CompileAndVerify(source, expectedOutput: "123456", parseOptions: TestOptions.Regular9); 1560CompileAndVerify(source, expectedOutput: "123456", parseOptions: TestOptions.Regular9); 1581CompileAndVerify(source, expectedOutput: "hello world", parseOptions: TestOptions.Regular9); 1612CompileAndVerify(source, expectedOutput: "12", parseOptions: TestOptions.Regular9);
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
1625var compilation = CreateCompilation(source, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular10, targetFramework: TargetFramework.Net70);
Semantics\ConstantTests.cs (3)
185var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3362CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3909comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\DelegateTypeTests.cs (147)
85var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 175var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 217var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 308var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 352var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 393var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 426var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 535var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 624var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3211var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3242var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3294var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3340var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3855var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3882var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 4722CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 4751CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 4787CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 4823CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"E.M"); 4860var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4915var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4947var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4988CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "extension, extension, "); 5016CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "extension, extension, "); 5046CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "extension, extension, "); 5071var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5161CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5187CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5210CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5238CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5266CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 5323var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5355var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5389var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5424var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5454CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5483CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5504CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5527CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5550CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5573CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5597CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5640CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5671CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5693var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5734CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5766CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5828var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5864var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5898var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5930var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6003var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6037var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6066var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6121CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 6152CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 6199CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 6241CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 6279var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6303var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6361CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 7409CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7439CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7508var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7541var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7611var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7642var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7680var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7724var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7762var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7833var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7894CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7916var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7945var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7983var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8209var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8316var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8349var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8387var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8429var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8475CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 8515var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8538var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8581CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 8616var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8652var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8683CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 8718var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8754var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8785var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8812var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8858var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8919var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8948var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8977var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9007var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9051var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9085var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9113var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9152var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9199var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9234var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9270var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9322var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9365var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9513var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9821CompileAndVerify(source, parseOptions: TestOptions.Regular9); 9850CompileAndVerify(source, parseOptions: TestOptions.Regular9); 9892var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9981CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10006CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10032CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10058CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10081CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10108CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10178var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 10251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9.WithKind(SourceCodeKind.Script)); 10617var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10664var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10699var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10741var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10777var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10816var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10852CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 10875var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10914CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 14820var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14868var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14938var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15027var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15087var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15164var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15201CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 15252var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15317var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15361var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15414var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\DynamicTests.cs (2)
1278var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2842var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll);
Semantics\ForEachTests.cs (1)
3231var boundNode = GetBoundForEachStatement(text, options: TestOptions.Regular9);
Semantics\FunctionPointerTests.cs (1)
47comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular9);
Semantics\GlobalUsingDirectiveTests.cs (1)
36CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Semantics\ImplicitObjectCreationTests.cs (2)
19private static readonly CSharpParseOptions ImplicitObjectCreationTestOptions = TestOptions.Regular9; 4419parseOptions: TestOptions.Regular9);
Semantics\InheritanceBindingTests.cs (3)
71CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 163CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 319CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Semantics\InitOnlyMemberTests.cs (95)
65var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 103var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 136var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 173var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 208var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 227comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 334var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 367var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 389var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 453var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 494var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 546var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 575var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 604var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 635var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 688var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 745var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 771var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 870var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 945var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 971var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1003var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1045var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1047parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1050libComp = CreateCompilation(new[] { parent, source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1052parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1081var libComp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1083parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1129var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1131parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1134libComp = CreateCompilation(new[] { parent, source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1136parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1149var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1212var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1251var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1281var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1308var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1335var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1362var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1389var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1409var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1442parseOptions: TestOptions.Regular9, 1523var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1619parseOptions: TestOptions.Regular9); 1764var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1788var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 1866var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1906var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1949var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1995var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2034var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2065var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2086var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2104var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 2157var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2192var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2213var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2230var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 2284parseOptions: TestOptions.Regular9); 2377parseOptions: TestOptions.Regular9); 2418var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2448var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2468var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2490var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2514var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2536var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2611var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2680var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2738options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2786var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 2823var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2876var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2957var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3009var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 3036var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3058var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3086parseOptions: TestOptions.Regular9); 3181", IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3257var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3348var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3466var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9, 3565var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9, 3629var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3688var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3738var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3806var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3884var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3972var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 4055var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 4102var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 4136", IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 4194targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 4201targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
Semantics\InterpolationTests.cs (6)
989CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2222var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 3742var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions: TestOptions.Regular9); 4926comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular9); 5559var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net50); 5845var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\LambdaDiscardParametersTests.cs (4)
85}", parseOptions: TestOptions.Regular9); 101}", parseOptions: TestOptions.Regular9); 284var comp3 = CreateCompilation(src, parseOptions: TestOptions.Regular9); 368var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\LambdaTests.cs (7)
1169var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular9); 3677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3731var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5048var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6035var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6097var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\LocalFunctionTests.cs (41)
343var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Regular9); 438var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Regular9); 443var newTree = SyntaxFactory.ParseSyntaxTree(text + " ", options: TestOptions.Regular9); 484var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 532var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 603var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 656var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 710var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 758var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 796var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 843var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 901comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 946var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1016var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1081var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1118var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1202var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1283var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1348var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1379var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1747}", parseOptions: TestOptions.Regular9); 1822}", parseOptions: TestOptions.Regular9); 1898}", options: TestOptions.Regular9); 1954}", options: TestOptions.Regular9); 2023var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2673}", parseOptions: TestOptions.Regular9); 2696CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3740comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4952var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 5987var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6027var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6058var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6094var comp = CreateCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6125var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6163var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6193var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6222var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6263var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6290var comp = CreateCompilation(new[] { DoesNotReturnAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6319var comp = CreateCompilation(new[] { DoesNotReturnIfAttributeDefinition, source }, parseOptions: TestOptions.Regular9);
Semantics\LookupPositionTests.cs (1)
3115var parseOptions = TestOptions.Regular9.WithDocumentationMode(DocumentationMode.Diagnose);
Semantics\NativeIntegerTests.cs (195)
85comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 103var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 175var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 188comp = CreateEmptyCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 194comp = CreateEmptyCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 695var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 704comp = CreateEmptyCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 708comp = CreateEmptyCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 776var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib40); 791comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib461); 856comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 895comp = CreateEmptyCompilation(sourceB, references: new[] { ref2, refA }, parseOptions: TestOptions.Regular9); 965comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1012comp = CreateEmptyCompilation(sourceB, references: new[] { ref2, refA }, parseOptions: TestOptions.Regular9); 1064comp = CreateCompilation(sourceB, references: new[] { refA1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard); 1080comp = CreateCompilation(sourceC, references: new[] { refA2, refB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard); 1149comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1161comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 1224comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1236comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 1293var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 1300var parseOptions = TestOptions.Regular9.WithNoRefSafetyRulesAttribute(); 1590var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular9); 1597comp = CreateEmptyCompilation("", references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1601comp = CreateEmptyCompilation("", references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 1643var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular9); 1650comp = CreateEmptyCompilation("", references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1654comp = CreateEmptyCompilation("", references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 1757comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 1930comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2112comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2226comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2329comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2461var compB = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2545var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular9); 2617comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2719comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2871var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 2934comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2981comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3014var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3112var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3115comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3120comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3123comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3164comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3167comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3194var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3253var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3256comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3261comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3264comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3320comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3323comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3358var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3402var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3426var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3450var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3473comp = CreateCompilation(source3, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3489var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9); 3492comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9); 3527var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3530comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3535comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3538comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3568comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3571comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3596var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3627comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3673comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3709comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3743comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3786comp = CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3818comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 3842comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3888comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3936comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3968comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 4004comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4026comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 4054comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 4071var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4110comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4152comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4179comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4211comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4240comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4266comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4288comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4309var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4340var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 4373CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4416var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9); 4452var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4488var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.StandardAndCSharp); 4544var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4613comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 4687var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4762comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4884var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 4887comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 4996var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 4999comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5147comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5206comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5226var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5247comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ? TestOptions.Regular9 : TestOptions.Regular8); 5338var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5357comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5487var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5503comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5535var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5550comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5579var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5606comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5671var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5684comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5713var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5734comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5782var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5823comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5844var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5868comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5889var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 6001comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 6019var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 6033comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 6057var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6105var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6286var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6360var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6387comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6410var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6427comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6545var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6592var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6731var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6895var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6916var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6941var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 6953comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 6970var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 6984comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 7003var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7022comp = CreateCompilation(source1, references: new[] { ref0 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7042var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7082var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7116var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7214var comp = CreateCompilation(new[] { sourceA, sourceB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7217comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 7221comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7224comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7287var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7454var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 9490var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9); 9725var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10099var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10326var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10376var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 10493var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 12376var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9); 12437var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12662var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12865var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12940var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13264var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 13282comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13308var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13487var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13516var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13540var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13569var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 13605var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 13664var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 13727var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 13793var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 13872var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 14010var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 14066CompileAndVerify(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, expectedOutput: 14169var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 14218var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14246var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14370var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 14419var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14441var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14474var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14510var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14598var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14627var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14650var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14675var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14704var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14729var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\NullableReferenceTypesTests.cs (229)
2001CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 20500", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 20862", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 20884", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 20922", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 20964""", MemberNotNullAttributeDefinition], parseOptions: TestOptions.Regular9); 22780", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 22859", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 22924", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 22980", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23033", MemberNotNullAttributeDefinition, NotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 23064", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23114", references: new[] { libComp.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 23235", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23292}", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23348", new[] { libComp.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 23430", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23478", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23503", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23530", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23554", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23598", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 23659", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23714var c2 = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 23755", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23806", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23911", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 23979", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24034", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24074", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24121", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24168", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24207", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24249", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24285", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24321", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24364", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24453", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24482", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24520", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24559", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24589", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24624", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24669", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24719", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24773", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 24815", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 24865", MemberNotNullWhenAttributeDefinition, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 24896", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 24927", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 24971", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 25052", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25092", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25133", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25193", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25220", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25251", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25302", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25356", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25413", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25453}", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25489", references: new[] { libComp.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 25524}", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25559", references: new[] { libComp.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 25626", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25664}", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25699", references: new[] { libComp.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 25758", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25815", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 25866", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 25930", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26003", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26067", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26120", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26177", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26223", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26276", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26324", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26365", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26563", MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26613", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26648", MemberNotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 26676", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26717", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26759", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26797", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26838", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 26880", MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 37041var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }, parseOptions: TestOptions.Regular9); 37067var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }, parseOptions: TestOptions.Regular9); 41620var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 80882var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 80913var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 81125var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 87727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 91696var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91723var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91752var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91790var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91822var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91851var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91881var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91908var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91938var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91968var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91995var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92027var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92054var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92088var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92118var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92197var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92224var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92253var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92292var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92325var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92355var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92385var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92412var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92442var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92472var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92500var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92533var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92561var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92595var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92625var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92649var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92674var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 97859comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9, skipUsesIsNullable: true); 98241var comp = CreateCompilation(new[] { source, NullableAttributeDefinition }, parseOptions: TestOptions.Regular9); 149920comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 149940comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 149960comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150070comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150155var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150213var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150230comp = CreateCompilation(sourceB0, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150246comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150298comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150332comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150372comp = CreateCompilation(sourceB4, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150479var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150502comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150545var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150602var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150686comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150766comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150846comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150926comp = CreateCompilation(sourceB4, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151009comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151089comp = CreateCompilation(sourceB6, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151181comp = CreateCompilation(sourceB7, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151244var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 151382comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151462comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151554comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151619var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 151644comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151752comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151857comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151995var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152020comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152128comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152233comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152368var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152389comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152480comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152562comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152699comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152813comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152918comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152965var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 153240comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 153281comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 153394comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 153423var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 153529var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153557var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 153581comp = CreateCompilation(source2, parseOptions: TestOptions.Regular9); 153593comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 153617comp = CreateCompilation(source4, parseOptions: TestOptions.Regular9); 153655var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153710var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153757var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153794var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153833var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153877var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153942var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153981var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154006comp = CreateCompilation(source2, parseOptions: TestOptions.Regular9); 154031comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 154056comp = CreateCompilation(source4, parseOptions: TestOptions.Regular9); 154082comp = CreateCompilation(source5, parseOptions: TestOptions.Regular9); 154108comp = CreateCompilation(source6, parseOptions: TestOptions.Regular9); 154135var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154155var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154188comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 154221comp = CreateCompilation(source5, parseOptions: TestOptions.Regular9); 154245var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154275var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154297comp = CreateCompilation(source2, parseOptions: TestOptions.Regular9); 154322comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 154345comp = CreateCompilation(source4, parseOptions: TestOptions.Regular9); 154368comp = CreateCompilation(source5, parseOptions: TestOptions.Regular9); 154406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154456var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154503var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 154531comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 154581var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 154685comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 154714var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154781var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154849var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154917var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154986comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 155015comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 155062var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155123var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155193var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 155249comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 155335var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155583comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156058parseOptions: TestOptions.Regular9); 156285}", parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 156641var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156674var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156710var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156784var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156806var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\NullableReferenceTypesVsPatterns.cs (1)
2497var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\OperatorTests.cs (1)
7325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\OverloadResolutionTests.cs (2)
387CompileAndVerify(source2, parseOptions: TestOptions.Regular9, expectedOutput: @"2"); 875var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9);
Semantics\RawInterpolationTests_Handler.cs (4)
590var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 2118var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions: TestOptions.Regular9); 3774var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net50); 4077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\RecordStructTests.cs (23)
251var comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 264comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 270comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 323var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular9); 336comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 342comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 348comp = CreateCompilation(src4, parseOptions: TestOptions.Regular9); 926var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 970var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1102var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1136var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1166var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 6898var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 8258var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 10149var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 10539var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11244comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11270comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11296comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11322comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11351comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11380comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11409comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Semantics\SemanticErrorTests.cs (3)
2729CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2793CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2813CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Semantics\StructConstructorTests.cs (8)
29var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 247comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 1973var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2013var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2074var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2535var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2617var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3235comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib461);
Semantics\StructsTests.cs (5)
30CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 59CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 86CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 638CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 669var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9);
Semantics\TopLevelStatementsTests.cs (1)
29private static CSharpParseOptions DefaultParseOptions => TestOptions.Regular9;
Semantics\UninitializedNonNullableFieldTests.cs (6)
1487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1521var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1555var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1589var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1612var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1647var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (85)
Compilation\CompilationAPITests.cs (1)
648options: TestOptions.Regular9) },
Compilation\SemanticModelAPITests.cs (2)
4470var comp = CreateCompilation(source, options: options, parseOptions: TestOptions.Regular9); 4525var comp = CreateCompilation(source, options: options, parseOptions: TestOptions.Regular9);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
5634var semanticInfo = GetSemanticInfoForTest<ExpressionSyntax>(text, parseOptions: TestOptions.Regular9);
SymbolDisplay\SymbolDisplayTests.cs (1)
7956var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9);
Symbols\CovariantReturnTests.cs (1)
408parseOptions: parseOptions ?? TestOptions.Regular9,
Symbols\DefaultInterfaceImplementationTests.cs (45)
8938parseOptions: TestOptions.Regular9, 9231parseOptions: TestOptions.Regular9, 9283parseOptions: TestOptions.Regular9, 9448parseOptions: TestOptions.Regular9, 9473parseOptions: TestOptions.Regular9, 9965parseOptions: TestOptions.Regular9, 9994foreach (var parseOptions in new[] { TestOptions.Regular9, TestOptions.Regular }) 10051parseOptions: TestOptions.Regular9, 10677parseOptions: TestOptions.Regular9, 11848parseOptions: TestOptions.Regular9, 11908parseOptions: TestOptions.Regular9, 11984parseOptions: TestOptions.Regular9, 12023parseOptions: TestOptions.Regular9, 12104parseOptions: TestOptions.Regular9, 12146parseOptions: TestOptions.Regular9, 14360parseOptions: TestOptions.Regular9, 14913parseOptions: TestOptions.Regular9, 14959parseOptions: TestOptions.Regular9, 15111parseOptions: TestOptions.Regular9, 15138parseOptions: TestOptions.Regular9, 15838parseOptions: TestOptions.Regular9, 15865parseOptions: TestOptions.Regular9, 15956parseOptions: TestOptions.Regular9, 17266parseOptions: TestOptions.Regular9, 18458parseOptions: TestOptions.Regular9, 18496parseOptions: TestOptions.Regular9, 27941parseOptions: TestOptions.Regular9, 28419parseOptions: TestOptions.Regular9, 28502parseOptions: TestOptions.Regular9, 28616parseOptions: TestOptions.Regular9, 28643parseOptions: TestOptions.Regular9, 29350parseOptions: TestOptions.Regular9, 29377parseOptions: TestOptions.Regular9, 29461parseOptions: TestOptions.Regular9, 30660parseOptions: TestOptions.Regular9, 46996parseOptions: TestOptions.Regular9); 47029parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 47088CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 47120CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 62513var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 62556parseOptions: TestOptions.Regular9, 67004parseOptions: TestOptions.Regular9, 67045parseOptions: TestOptions.Regular9, 67109parseOptions: TestOptions.Regular9, 67994foreach (var parseOptions in new[] { TestOptions.Regular8, TestOptions.Regular9, TestOptions.Regular })
Symbols\ExtensionMethodTests.cs (2)
1138var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1440var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Symbols\FunctionPointerTypeSymbolTests.cs (5)
23return CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: targetFramework); 1053var comp = CreateCompilationWithIL("", ilSource, parseOptions: TestOptions.Regular9); 1387var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 1956", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9); 2082", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
Symbols\GenericConstraintTests.cs (1)
5657CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Symbols\ModuleInitializers\AccessibilityTests.cs (1)
17private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9;
Symbols\ModuleInitializers\GenericsTests.cs (1)
16private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9;
Symbols\ModuleInitializers\ModuleInitializersTests.cs (2)
23private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9; 62var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Symbols\ModuleInitializers\SignatureTests.cs (1)
17private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9;
Symbols\ModuleInitializers\TargetsTests.cs (1)
16private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9;
Symbols\Retargeting\RetargetingTests.cs (2)
975}}", new[] { retargeted1Ref, consistentRef, ilRef }, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard); 980options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9,
Symbols\Source\ClsComplianceTests.cs (3)
2996CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3017CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3038CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Symbols\Source\DelegateTests.cs (1)
321CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Symbols\Source\FieldTests.cs (2)
28CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 44var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9);
Symbols\Source\MethodTests.cs (1)
51var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9);
Symbols\Source\NullablePublicAPITests.cs (2)
4031var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 4763var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9);
Symbols\Source\PropertyTests.cs (4)
122", parseOptions: TestOptions.Regular9).VerifyDiagnostics( 155CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 208var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 233var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9);
Symbols\Source\RecordTests.cs (4)
17=> CSharpTestBase.CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 22parseOptions: TestOptions.Regular9, 1353parseOptions: TestOptions.Regular9, 1469parseOptions: TestOptions.Regular9,
Symbols\SymbolErrorTests.cs (1)
10891var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (191)
Parsing\AnonymousFunctionParsingTests.cs (4)
1233UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1280UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1478UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1532UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8,
Parsing\DeclarationParsingTests.cs (4)
8787CreateCompilation(test, parseOptions: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9).VerifyDiagnostics( 8807useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9); 8916CreateCompilation(test, parseOptions: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9).VerifyDiagnostics( 8952useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9);
Parsing\DeconstructionTests.cs (1)
2130CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Parsing\FunctionPointerTests.cs (56)
20UsingStatement("delegate*<string, Goo, int> ptr;", options: TestOptions.Regular9); 76UsingStatement($"delegate* unmanaged[{conventionString}]<string, Goo, int> ptr;", options: TestOptions.Regular9); 598UsingStatement("delegate*<void, void, void> ptr;", options: TestOptions.Regular9); 649UsingStatement("delegate*<delegate* unmanaged[cdecl]<int*, void*>, delegate* managed<string*>> ptr;", options: TestOptions.Regular9); 755UsingStatement("delegate*<Goo, void>* ptr;", options: TestOptions.Regular9); 802UsingStatement("delegate*<ref Goo, in Bar, out Baz, ref readonly void*> ptr;", options: TestOptions.Regular9); 870UsingStatement("delegate*< ;", options: TestOptions.Regular9, 914UsingStatement("delegate*<ref ;", options: TestOptions.Regular9, 959UsingStatement("delegate*<ref bar ;", options: TestOptions.Regular9, 1001UsingStatement("delegate*<ref bar, ;", options: TestOptions.Regular9, 1054UsingStatement("delegate* unmanaged[ptr];", options: TestOptions.Regular9, 1108UsingStatement("delegate* unmanaged[cdecl] ;", options: TestOptions.Regular9, 1162UsingStatement("delegate* unmanaged[cdecl] ptr;", options: TestOptions.Regular9, 1213UsingStatement("delegate* ;", options: TestOptions.Regular9, 1254UsingStatement("delegate* unmanaged.Name[Dotted]<void> ptr;", options: TestOptions.Regular9, 1333UsingStatement("delegate*( ;", options: TestOptions.Regular9, 1380UsingStatement("delegate* @cdecl>", options: TestOptions.Regular9, 1612UsingStatement("delegate*<> ptr;", options: TestOptions.Regular9, 1650UsingStatement("delegate*(int, void)", options: TestOptions.Regular9, 1710options: TestOptions.Regular9); 1832UsingExpression("(delegate* unmanaged[thiscall]<int, C>)ptr", options: TestOptions.Regular9); 1886UsingExpression("ptr as delegate* unmanaged[stdcall]<int, void>", options: TestOptions.Regular9); 1939UsingExpression("((delegate*<int, void> i1, delegate* managed<C, D> i2))ptr", options: TestOptions.Regular9); 2023UsingExpression("new M<delegate* unmanaged[thiscall]<void>, delegate*<C, D>>()", options: TestOptions.Regular9); 2104UsingExpression("typeof(delegate* unmanaged[cdecl]<ref int, readonly ref D>)", options: TestOptions.Regular9); 2158UsingStatement("delegate*<ref C>[] ptr;", options: TestOptions.Regular9); 2211options: TestOptions.Regular9); 2300UsingExpression("(delegate*<void> p1) => {}", options: TestOptions.Regular9); 2348}", options: TestOptions.Regular9, 2473UsingExpression("o is delegate*<void>", options: TestOptions.Regular9); 2505UsingExpression("o is delegate*<void> ptr", options: TestOptions.Regular9); 2550}", options: TestOptions.Regular9); 2670}", options: TestOptions.Regular9); 2781UsingStatement("using (delegate*<void> ptr = MyMethod()) {}", options: TestOptions.Regular9); 2839UsingStatement("using delegate*<void> ptr = MyMethod();", options: TestOptions.Regular9); 2891UsingStatement("fixed (delegate*<void> ptr = &MyMethod) {}", options: TestOptions.Regular9); 2945UsingStatement("foreach (delegate*<void> ptr in ptrs) {}", options: TestOptions.Regular9); 2986UsingStatement("for (delegate*<void> ptr = null;;) {}", options: TestOptions.Regular9); 3038UsingExpression("sizeof(delegate*<void>)", options: TestOptions.Regular9); 3068UsingStatement("delegate*<int param1, string param2 = default, void> ptr;", options: TestOptions.Regular9, 3125UsingStatement("delegate*void> ptr;", options: TestOptions.Regular9, 3169UsingStatement("delegate* unmanaged[cdecl] void> ptr;", options: TestOptions.Regular9, 3226UsingStatement("delegate*> ptr;", options: TestOptions.Regular9, 3310UsingStatement("delegate*<this params readonly ref ref this int> ptr;", options: TestOptions.Regular9); 3355}", options: TestOptions.Regular9); 3429}", options: TestOptions.Regular9); 3502}", options: TestOptions.Regular9, 3582}", options: TestOptions.Regular9); 3650UsingStatement("delegate*", options: TestOptions.Regular9, 3694UsingStatement("delegate* unmanaged[cdecl]", options: TestOptions.Regular9, 3751UsingStatement("delegate* unmanaged[cdecl]<void) ptr;", options: TestOptions.Regular9, 3808UsingStatement("delegate* unmanaged[cdecl](void> ptr;", options: TestOptions.Regular9, 3873}}", options: TestOptions.Regular9, 3960}", options: TestOptions.Regular9, 4073UsingStatement("I<delegate*<void>[]> i;", options: TestOptions.Regular9); 4129UsingNode("using t = delegate*<void>;", options: TestOptions.Regular9);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
16private static readonly CSharpParseOptions DefaultParseOptions = TestOptions.Regular9;
Parsing\LambdaAttributeParsingTests.cs (9)
36UsingExpression(source, TestOptions.Regular9); 76UsingExpression(source, TestOptions.Regular9); 126UsingExpression(source, TestOptions.Regular9); 187UsingExpression(source, TestOptions.Regular9); 1991UsingExpression(source, TestOptions.Regular9); 2792UsingExpression(source, TestOptions.Regular9); 3569verify(source, TestOptions.Regular9); 3599verify(source, TestOptions.Regular9); 3632verify(source, TestOptions.Regular9);
Parsing\LambdaReturnTypeParsingTests.cs (18)
42UsingExpression(source, TestOptions.Regular9); 79UsingExpression(source, TestOptions.Regular9); 126UsingExpression(source, TestOptions.Regular9); 167verify(source, TestOptions.Regular9); 208UsingExpression(source, TestOptions.Regular9, 285verify(source, TestOptions.Regular9); 315verify(source, TestOptions.Regular9); 5009UsingTree(source, TestOptions.Regular9); 5054UsingExpression(source, TestOptions.Regular9); 5080UsingDeclaration(source, TestOptions.Regular9); 5125verify(source, TestOptions.Regular9); 5157verify(source, TestOptions.Regular9); 5179verify(source, TestOptions.Regular9); 5235verify(source, TestOptions.Regular9); 5288verify(source, TestOptions.Regular9); 5339verify(source, TestOptions.Regular9); 5384verify(source, TestOptions.Regular9); 5432verify(source, TestOptions.Regular9);
Parsing\LineSpanDirectiveParsingTests.cs (4)
43UsingLineDirective(source, TestOptions.Regular9); 46UsingLineDirective(source, TestOptions.Regular9.WithPreprocessorSymbols("IsActive")); 84UsingLineDirective(source, TestOptions.Regular9); 125UsingLineDirective(source, TestOptions.Regular9);
Parsing\LocalFunctionParsingTests.cs (21)
372}", options: TestOptions.Regular9); 560}", TestOptions.Regular9, 696CreateCompilation(code, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 720UsingTree(code, TestOptions.Regular9).GetDiagnostics().Verify(); 788CreateCompilation(code, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 806UsingTree(code, TestOptions.Regular9).GetDiagnostics().Verify(); 871UsingStatement(statement, TestOptions.Regular9, 916}", TestOptions.Regular9); 996}", TestOptions.Regular9); 1731CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1742UsingDeclaration(text, options: TestOptions.Regular9); 1837CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1857UsingDeclaration(text, options: TestOptions.Regular9); 1995CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2036UsingDeclaration(text, options: TestOptions.Regular9, 2135UsingDeclaration(text, options: TestOptions.Regular9, 2215UsingDeclaration(text, options: TestOptions.Regular9, 2302UsingDeclaration(text, options: TestOptions.Regular9, 2396UsingDeclaration(text, options: TestOptions.Regular9, 2515CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2565UsingDeclaration(text, options: TestOptions.Regular9,
Parsing\MemberDeclarationParsingTests.cs (29)
2317CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2428CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2553CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2677CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2783CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3198CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3313CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3441CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3569CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3679CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4243CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4347CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4464CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4581CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4680CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5083CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5191CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5312CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5433CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5536CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6268CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6355CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6506CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6606CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6993CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7084CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7197CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7301CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7405CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Parsing\ParserErrorMessageTests.cs (2)
638CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2421CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Parsing\ParsingErrorRecoveryTests.cs (1)
7395SyntaxTree syntaxTree = SyntaxFactory.ParseSyntaxTree(text, TestOptions.Regular9);
Parsing\PatternParsingTests2.cs (2)
38CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 52UsingExpression(test, TestOptions.Regular9);
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (1)
286}", parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Parsing\RawStringLiteralCompilingTests.cs (1)
214}", parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Parsing\RecordParsing.cs (16)
19=> UsingTree(text, TestOptions.Regular9, expectedErrors); 22=> UsingExpression(text, TestOptions.Regular9, expectedErrors); 25=> UsingStatement(text, TestOptions.Regular9, expectedErrors); 1717UsingStatement("int x = await with { };", options: TestOptions.Regular9); 1756UsingStatement("await with;", options: TestOptions.Regular9); 2660CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2667UsingTree(text, options: TestOptions.Regular9, 2732UsingTree(text, options: TestOptions.Regular9); 2917CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2927UsingTree(text, options: TestOptions.Regular9); 3253UsingTree(text, options: TestOptions.Regular9, 3318UsingTree(text, options: TestOptions.Regular9); 3403UsingTree(text, options: TestOptions.Regular9, 3837CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3844UsingTree(text, options: TestOptions.Regular9); 3917UsingTree(text, options: TestOptions.Regular9);
Parsing\RefReadonlyTests.cs (2)
136ParseAndValidate(text, TestOptions.Regular9, 1279UsingDeclaration(source, TestOptions.Regular9);
Parsing\ScriptParsingTests.cs (2)
2590ParseAndValidate(test, TestOptions.Regular9); 2594ParseAndValidate(test, TestOptions.Regular9, new[] { new ErrorDescription { Code = (int)ErrorCode.ERR_SemicolonExpected, Line = 1, Column = 8 } }); // expected ';'
Parsing\SingleLineDeclarationParsingTests.cs (2)
193CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 198UsingNode(test, TestOptions.Regular9);
Syntax\SyntaxFactoryTests.cs (3)
629var parsedWithPreview = SyntaxFactory.ParseTypeName(type, options: TestOptions.Regular9); 649CreateCompilation(type, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 673CreateCompilation(type, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Syntax\SyntaxTreeTests.cs (12)
364CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 375UsingTree(test, TestOptions.Regular9); 433CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 447UsingTree(test, TestOptions.Regular9); 506CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 517UsingTree(test, TestOptions.Regular9); 577CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 591UsingTree(test, TestOptions.Regular9); 658CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 672UsingTree(test, TestOptions.Regular9); 746CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 763UsingTree(test, TestOptions.Regular9);