201 references to WithWarningLevel
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests.cs (1)
2023
return solution.WithProjectCompilationOptions(projectId, compilationOptions.
WithWarningLevel
(warningLevel));
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (4)
UnsafeEvolutionTests.cs (4)
2756
CreateCompilation([source, IsExternalInitTypeDefinition], options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules().
WithWarningLevel
(10)).VerifyDiagnostics(expectedDiagnostics);
2770
CreateCompilation([source, IsExternalInitTypeDefinition], options: TestOptions.UnsafeReleaseExe.WithUpdatedMemorySafetyRules().
WithWarningLevel
(11)).VerifyDiagnostics(expectedDiagnostics);
9563
options: TestOptions.UnsafeReleaseDll.
WithWarningLevel
(10))
9566
options: TestOptions.UnsafeReleaseDll.
WithWarningLevel
(11))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAsyncTests.cs (1)
2211
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)
2291
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)
2023
return solution.WithProjectCompilationOptions(projectId, compilationOptions.
WithWarningLevel
(warningLevel));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
Semantics\InterceptorsTests.cs (2)
65
var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, options: TestOptions.DebugExe.
WithWarningLevel
(8));
68
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)
1187
verifyDiagnosticsWithOptions(options.
WithWarningLevel
(0));
1189
verifyDiagnosticsWithOptions(options.
WithWarningLevel
(2),
1192
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)
641
option = commonoption.
WithWarningLevel
(3);
650
option = commonoption.
WithWarningLevel
(2);
653
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
656
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
691
option = commonoption.
WithWarningLevel
(3);
697
option = commonoption.
WithWarningLevel
(2);
700
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
703
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
745
option = commonoption.
WithWarningLevel
(3);
754
option = commonoption.
WithWarningLevel
(2);
757
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
760
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
801
option = commonoption.
WithWarningLevel
(3);
810
option = commonoption.
WithWarningLevel
(2);
813
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
816
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
857
option = commonoption.
WithWarningLevel
(3);
866
option = commonoption.
WithWarningLevel
(2);
869
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
872
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
915
option = commonoption.
WithWarningLevel
(3);
924
option = commonoption.
WithWarningLevel
(2);
927
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
930
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
973
option = commonoption.
WithWarningLevel
(3);
982
option = commonoption.
WithWarningLevel
(2);
985
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
988
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1035
option = commonoption.
WithWarningLevel
(3);
1047
option = commonoption.
WithWarningLevel
(2);
1050
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1053
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1108
option = commonoption.
WithWarningLevel
(3);
1123
option = commonoption.
WithWarningLevel
(2);
1126
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1129
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1176
option = commonoption.
WithWarningLevel
(3);
1188
option = commonoption.
WithWarningLevel
(2);
1191
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1194
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1235
option = commonoption.
WithWarningLevel
(3);
1241
option = commonoption.
WithWarningLevel
(2);
1244
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1247
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1288
option = commonoption.
WithWarningLevel
(3);
1294
option = commonoption.
WithWarningLevel
(2);
1297
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1300
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1342
option = commonoption.
WithWarningLevel
(3);
1348
option = commonoption.
WithWarningLevel
(2);
1351
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1354
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1389
option = commonoption.
WithWarningLevel
(3);
1392
option = commonoption.
WithWarningLevel
(2);
1395
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1398
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1443
option = commonoption.
WithWarningLevel
(3);
1449
option = commonoption.
WithWarningLevel
(2);
1452
option = commonoption.
WithWarningLevel
(2).WithGeneralDiagnosticOption(ReportDiagnostic.Error);
1455
option = commonoption.
WithWarningLevel
(2).WithSpecificDiagnosticOptions(warnings);
1522
option = commonoption.
WithWarningLevel
(2);
1572
option = commonoption.
WithWarningLevel
(2);
1625
option = commonoption.
WithWarningLevel
(2);
1678
option = commonoption.
WithWarningLevel
(2);
1722
option = commonoption.
WithWarningLevel
(2);
1753
option = commonoption.
WithWarningLevel
(2);
1799
option = commonoption.
WithWarningLevel
(2);
1854
option = commonoption.
WithWarningLevel
(2);
2287
option = commonoption.
WithWarningLevel
(2);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
151
.
WithWarningLevel
(warningLevel);