197 references to WithWarningLevel
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests.cs (1)
2065
return solution.WithProjectCompilationOptions(projectId, compilationOptions.
WithWarningLevel
(warningLevel));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAsyncTests.cs (1)
1067
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)
1021
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70);
1024
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)
1421
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)
2888
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)
2065
return solution.WithProjectCompilationOptions(projectId, compilationOptions.
WithWarningLevel
(warningLevel));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
Semantics\InterceptorsTests.cs (2)
73
var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.DebugExe.
WithWarningLevel
(8));
76
comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.DebugExe.
WithWarningLevel
(9));
Semantics\NameOfTests.cs (2)
240
var option = TestOptions.ReleaseExe.
WithWarningLevel
(0);
420
var option = TestOptions.ReleaseExe.
WithWarningLevel
(0);
Semantics\NativeIntegerTests.cs (2)
3489
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.Regular9);
3492
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)
5484
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(9), targetFramework: TargetFramework.Net70).VerifyDiagnostics();
5493
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(10), targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
Semantics\SemanticErrorTests.cs (3)
12810
CreateCompilation(text, options: TestOptions.ReleaseDll.
WithWarningLevel
(5)).VerifyDiagnostics(
18384
CreateCompilation(source, options: TestOptions.DebugExe.
WithWarningLevel
(5)).VerifyDiagnostics();
21082
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)
230
CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(0)).VerifyDiagnostics(
288
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)
2726
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
2732
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
2770
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
2773
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
2798
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
2807
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3102
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3105
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3129
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3132
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3210
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3234
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods);
3317
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5));
3320
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6));
3355
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5));
3373
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6));
3416
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5));
3419
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6));
3457
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(5));
3460
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(6));
Symbols\SymbolErrorTests.cs (11)
13378
var regularComp = CreateCompilation(text, options: TestOptions.ReleaseDll.
WithWarningLevel
(4));
13804
comp = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithWarningLevel
(4));
21336
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(6));
21339
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21397
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(6));
21400
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21442
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(6));
21461
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21484
var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21502
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
21529
comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.
WithWarningLevel
(7));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (69)
Diagnostics\DiagnosticTest.cs (69)
637
option = commonoption.
WithWarningLevel
(3);
646
option = commonoption.
WithWarningLevel
(2);
649
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
652
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
687
option = commonoption.
WithWarningLevel
(3);
693
option = commonoption.
WithWarningLevel
(2);
696
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
699
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
741
option = commonoption.
WithWarningLevel
(3);
750
option = commonoption.
WithWarningLevel
(2);
753
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
756
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
797
option = commonoption.
WithWarningLevel
(3);
806
option = commonoption.
WithWarningLevel
(2);
809
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
812
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
853
option = commonoption.
WithWarningLevel
(3);
862
option = commonoption.
WithWarningLevel
(2);
865
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
868
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
911
option = commonoption.
WithWarningLevel
(3);
920
option = commonoption.
WithWarningLevel
(2);
923
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
926
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
969
option = commonoption.
WithWarningLevel
(3);
978
option = commonoption.
WithWarningLevel
(2);
981
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
984
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1031
option = commonoption.
WithWarningLevel
(3);
1043
option = commonoption.
WithWarningLevel
(2);
1046
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1049
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1104
option = commonoption.
WithWarningLevel
(3);
1119
option = commonoption.
WithWarningLevel
(2);
1122
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1125
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1172
option = commonoption.
WithWarningLevel
(3);
1184
option = commonoption.
WithWarningLevel
(2);
1187
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1190
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1231
option = commonoption.
WithWarningLevel
(3);
1237
option = commonoption.
WithWarningLevel
(2);
1240
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1243
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1284
option = commonoption.
WithWarningLevel
(3);
1290
option = commonoption.
WithWarningLevel
(2);
1293
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1296
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1338
option = commonoption.
WithWarningLevel
(3);
1344
option = commonoption.
WithWarningLevel
(2);
1347
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1350
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1385
option = commonoption.
WithWarningLevel
(3);
1388
option = commonoption.
WithWarningLevel
(2);
1391
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1394
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1439
option = commonoption.
WithWarningLevel
(3);
1445
option = commonoption.
WithWarningLevel
(2);
1448
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1451
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1518
option = commonoption.
WithWarningLevel
(2);
1568
option = commonoption.
WithWarningLevel
(2);
1621
option = commonoption.
WithWarningLevel
(2);
1674
option = commonoption.
WithWarningLevel
(2);
1718
option = commonoption.
WithWarningLevel
(2);
1749
option = commonoption.
WithWarningLevel
(2);
1795
option = commonoption.
WithWarningLevel
(2);
1850
option = commonoption.
WithWarningLevel
(2);
2283
option = commonoption.
WithWarningLevel
(2);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
150
.
WithWarningLevel
(warningLevel);