197 references to WithWarningLevel
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests.cs (1)
1974
return solution.WithProjectCompilationOptions(projectId, compilationOptions.
WithWarningLevel
(warningLevel));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAsyncTests.cs (1)
2173
CreateCompilation(source, options: TestOptions.UnsafeDebugExe.
WithWarningLevel
(7)).VerifyDiagnostics(
CodeGen\CodeGenLocalFunctionTests.cs (2)
2439
VerifyOutput(source, "2", TestOptions.ReleaseExe.
WithWarningLevel
(0));
4609
VerifyOutput(source, output, TestOptions.ReleaseExe.WithAllowUnsafe(true).
WithWarningLevel
(0), verify: Verification.Passes);
CodeGen\CodeGenOperators.cs (1)
2290
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.ReleaseExe.
WithWarningLevel
(5)).VerifyDiagnostics(
CodeGen\CodeGenOptimizedNullableOperators.cs (1)
1406
CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe.
WithWarningLevel
(4)).VerifyDiagnostics(
Emit\EntryPointTests.cs (1)
18
return CreateCompilation(source, options: TestOptions.ReleaseExe.
WithWarningLevel
(5).WithMainTypeName(mainTypeName), parseOptions: parseOptions);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
1027
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70);
1030
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (21)
Attributes\AttributeTests_CallerInfoAttributes.cs (1)
3323
CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(0)).VerifyDiagnostics(
Attributes\AttributeTests_MarshalAs.cs (2)
704
options: TestOptions.ReleaseDll.
WithWarningLevel
(7))
709
options: TestOptions.ReleaseDll.
WithWarningLevel
(8))
Attributes\AttributeTests_NativeInteger.cs (1)
1423
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.Regular9);
FlowAnalysis\StructTests.cs (16)
560
options: TestOptions.ReleaseDll.
WithWarningLevel
(5),
570
options: TestOptions.ReleaseDll.
WithWarningLevel
(5),
580
options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel),
587
options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel),
649
CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
651
CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
653
CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
658
CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
694
CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
696
CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
698
CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
703
CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
738
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
786
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: WithNullableEnable().
WithWarningLevel
(5)).VerifyDiagnostics(
814
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
816
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
Semantics\RecordTests.cs (1)
2878
comp = CreateCompilation(src, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll.
WithWarningLevel
(6));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests.cs (1)
1974
return solution.WithProjectCompilationOptions(projectId, compilationOptions.
WithWarningLevel
(warningLevel));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
Semantics\InterceptorsTests.cs (2)
74
var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.DebugExe.
WithWarningLevel
(8));
77
comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.DebugExe.
WithWarningLevel
(9));
Semantics\NameOfTests.cs (2)
241
var option = TestOptions.ReleaseExe.
WithWarningLevel
(0);
421
var option = TestOptions.ReleaseExe.
WithWarningLevel
(0);
Semantics\NativeIntegerTests.cs (2)
3494
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.Regular9);
3497
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.Regular9);
Semantics\NullableConversionTests.cs (1)
653
var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.
WithWarningLevel
(0));
Semantics\RefFieldTests.cs (2)
5546
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(9), targetFramework: TargetFramework.Net70).VerifyDiagnostics();
5555
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(10), targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
Semantics\SemanticErrorTests.cs (3)
12855
CreateCompilation(text, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
18494
CreateCompilation(source, options: TestOptions.DebugExe.
WithWarningLevel
(5)).VerifyDiagnostics();
21192
this.CompileAndVerify(source: text, expectedOutput: expected, options: TestOptions.ReleaseExe.
WithWarningLevel
(4)).VerifyDiagnostics(compatibleExpected);
Semantics\WarningVersionTests.cs (41)
48
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics();
49
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(3)).VerifyDiagnostics();
50
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(4)).VerifyDiagnostics();
51
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(whenWave5);
52
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6)).VerifyDiagnostics(whenWave5);
78
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics();
79
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(4)).VerifyDiagnostics();
80
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(whenWave5);
117
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics();
118
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(4)).VerifyDiagnostics();
119
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(whenWave5);
157
options: TestOptions.DebugDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel),
166
options: TestOptions.DebugDll.
WithWarningLevel
(5),
179
options: TestOptions.DebugDll.
WithWarningLevel
(5),
189
.
WithWarningLevel
(5)
235
options: TestOptions.DebugDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel),
244
options: TestOptions.DebugDll.
WithWarningLevel
(5),
258
.
WithWarningLevel
(5),
268
.
WithWarningLevel
(5)
321
options: TestOptions.DebugDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel),
330
options: TestOptions.DebugDll.
WithWarningLevel
(5),
346
options: TestOptions.DebugDll.
WithWarningLevel
(5),
359
.
WithWarningLevel
(5)
392
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
394
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
445
options: TestOptions.DebugDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel),
454
options: TestOptions.DebugDll.
WithWarningLevel
(5),
467
options: TestOptions.DebugDll.
WithWarningLevel
(5),
477
.
WithWarningLevel
(5)
532
options: TestOptions.DebugDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel),
541
options: TestOptions.DebugDll.
WithWarningLevel
(5),
554
options: TestOptions.DebugDll.
WithWarningLevel
(5),
564
.
WithWarningLevel
(5)
619
options: TestOptions.DebugDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel),
628
options: TestOptions.DebugDll.
WithWarningLevel
(5),
641
options: TestOptions.DebugDll.
WithWarningLevel
(5),
651
.
WithWarningLevel
(5)
683
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
685
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
713
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
715
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
SourceGeneration\GeneratorDriverTests.cs (3)
1183
verifyDiagnosticsWithOptions(options.
WithWarningLevel
(0));
1185
verifyDiagnosticsWithOptions(options.
WithWarningLevel
(2),
1188
verifyDiagnosticsWithOptions(options.
WithWarningLevel
(3),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (40)
Compilation\CompilationAPITests.cs (2)
229
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(0)).VerifyDiagnostics(
287
var compilationOptions = TestOptions.DebugDll.
WithWarningLevel
(0);
Compilation\CSharpCompilationOptionsTests.cs (5)
123
TestProperty((old, value) => old.
WithWarningLevel
(value), opt => opt.WarningLevel, 3);
239
Assert.Equal(1, new CSharpCompilationOptions(OutputKind.ConsoleApplication).
WithWarningLevel
(1).WarningLevel);
240
new CSharpCompilationOptions(OutputKind.ConsoleApplication).
WithWarningLevel
(-1).VerifyErrors(
244
new CSharpCompilationOptions(OutputKind.ConsoleApplication).
WithWarningLevel
(5).VerifyErrors();
245
new CSharpCompilationOptions(OutputKind.ConsoleApplication).
WithWarningLevel
(int.MaxValue).VerifyErrors();
Compilation\GetUnusedImportDirectivesTests.cs (2)
291
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(3));
317
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(0));
Symbols\ExtendedPartialMethodsTests.cs (20)
3050
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3056
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3094
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3097
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3122
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3131
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3426
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3429
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3453
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3456
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3534
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3558
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3641
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5));
3644
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6));
3679
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5));
3697
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6));
3740
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5));
3743
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6));
3781
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5));
3784
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6));
Symbols\SymbolErrorTests.cs (11)
13442
var regularComp = CreateCompilation(text, options: TestOptions.ReleaseDll.
WithWarningLevel
(4));
13868
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(4));
21400
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(6));
21403
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21461
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(6));
21464
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21506
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(6));
21525
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21548
var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21566
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21593
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (69)
Diagnostics\DiagnosticTest.cs (69)
636
option = commonoption.
WithWarningLevel
(3);
645
option = commonoption.
WithWarningLevel
(2);
648
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
651
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
686
option = commonoption.
WithWarningLevel
(3);
692
option = commonoption.
WithWarningLevel
(2);
695
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
698
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
740
option = commonoption.
WithWarningLevel
(3);
749
option = commonoption.
WithWarningLevel
(2);
752
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
755
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
796
option = commonoption.
WithWarningLevel
(3);
805
option = commonoption.
WithWarningLevel
(2);
808
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
811
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
852
option = commonoption.
WithWarningLevel
(3);
861
option = commonoption.
WithWarningLevel
(2);
864
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
867
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
910
option = commonoption.
WithWarningLevel
(3);
919
option = commonoption.
WithWarningLevel
(2);
922
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
925
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
968
option = commonoption.
WithWarningLevel
(3);
977
option = commonoption.
WithWarningLevel
(2);
980
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
983
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1030
option = commonoption.
WithWarningLevel
(3);
1042
option = commonoption.
WithWarningLevel
(2);
1045
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1048
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1103
option = commonoption.
WithWarningLevel
(3);
1118
option = commonoption.
WithWarningLevel
(2);
1121
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1124
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1171
option = commonoption.
WithWarningLevel
(3);
1183
option = commonoption.
WithWarningLevel
(2);
1186
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1189
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1230
option = commonoption.
WithWarningLevel
(3);
1236
option = commonoption.
WithWarningLevel
(2);
1239
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1242
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1283
option = commonoption.
WithWarningLevel
(3);
1289
option = commonoption.
WithWarningLevel
(2);
1292
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1295
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1337
option = commonoption.
WithWarningLevel
(3);
1343
option = commonoption.
WithWarningLevel
(2);
1346
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1349
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1384
option = commonoption.
WithWarningLevel
(3);
1387
option = commonoption.
WithWarningLevel
(2);
1390
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1393
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1438
option = commonoption.
WithWarningLevel
(3);
1444
option = commonoption.
WithWarningLevel
(2);
1447
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1450
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1517
option = commonoption.
WithWarningLevel
(2);
1567
option = commonoption.
WithWarningLevel
(2);
1620
option = commonoption.
WithWarningLevel
(2);
1673
option = commonoption.
WithWarningLevel
(2);
1717
option = commonoption.
WithWarningLevel
(2);
1748
option = commonoption.
WithWarningLevel
(2);
1794
option = commonoption.
WithWarningLevel
(2);
1849
option = commonoption.
WithWarningLevel
(2);
2282
option = commonoption.
WithWarningLevel
(2);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
151
.
WithWarningLevel
(warningLevel);