58 references to WithSpecificDiagnosticOptions
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (2)
5579
var options = TestOptions.DebugDll.
WithSpecificDiagnosticOptions
("CS0169", ReportDiagnostic.Error);
5624
var options = TestOptions.DebugDll.
WithSpecificDiagnosticOptions
("CS0612", ReportDiagnostic.Error);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
FirstClassSpanTests.cs (4)
2001
options: TestOptions.UnsafeReleaseExe.
WithSpecificDiagnosticOptions
("CS0436", ReportDiagnostic.Suppress),
2160
options: TestOptions.UnsafeReleaseExe.
WithSpecificDiagnosticOptions
("CS0436", ReportDiagnostic.Suppress));
2398
options: TestOptions.UnsafeReleaseExe.
WithSpecificDiagnosticOptions
("CS0436", ReportDiagnostic.Suppress));
2631
options: TestOptions.UnsafeReleaseExe.
WithSpecificDiagnosticOptions
("CS0436", ReportDiagnostic.Suppress));
Semantics\RecordTests.cs (1)
30193
var compB = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
("CS1701", ReportDiagnostic.Suppress), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (49)
Semantics\NullableReferenceTypesTests.cs (44)
6364
var comp2 = CreateCompilation(source, options: TestOptions.DebugDll.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Suppress));
125112
comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().
WithSpecificDiagnosticOptions
(id, option));
125135
comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default));
125154
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default).
125164
comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Error));
125174
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Error).
125195
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Suppress));
125200
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Suppress).
125210
comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Hidden));
125220
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Hidden).
125241
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default).
125470
comp = CreateCompilation(new[] { source, source2 }, options: options.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default));
125489
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default).
125499
comp = CreateCompilation(new[] { source, source2 }, options: options.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Error));
125509
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Error).
125530
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Suppress));
125535
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Suppress).
125545
comp = CreateCompilation(new[] { source, source2 }, options: options.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Hidden));
125555
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Hidden).
125576
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default).
126004
comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default));
126013
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default).
126018
comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Error));
126023
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Error).
126034
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Suppress));
126039
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Suppress).
126049
comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Hidden));
126054
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Hidden).
126065
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default).
126080
comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().
WithSpecificDiagnosticOptions
(id, option));
126150
comp = CreateCompilation(new[] { source, source2 }, options: options.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default));
126159
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default).
126164
comp = CreateCompilation(new[] { source, source2 }, options: options.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Error));
126169
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Error).
126180
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Suppress));
126185
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Suppress).
126195
comp = CreateCompilation(new[] { source, source2 }, options: options.
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Hidden));
126200
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Hidden).
126211
WithSpecificDiagnosticOptions
(id, ReportDiagnostic.Default).
144986
options: WithNullableEnable().
WithSpecificDiagnosticOptions
("CS0436", ReportDiagnostic.Suppress));
144999
options: WithNullableEnable().
WithSpecificDiagnosticOptions
("CS0436", ReportDiagnostic.Suppress));
145056
", options: WithNullableEnable().
WithSpecificDiagnosticOptions
("CS0436", ReportDiagnostic.Suppress));
145074
", options: WithNullableEnable().
WithSpecificDiagnosticOptions
("CS0436", ReportDiagnostic.Suppress));
145128
", options: WithNullableEnable().
WithSpecificDiagnosticOptions
("CS0436", ReportDiagnostic.Suppress));
Semantics\StructConstructorTests.cs (1)
3901
CreateCompilation(source, options: TestOptions.DebugDll.
WithSpecificDiagnosticOptions
(GetIdForErrorCode(ErrorCode.WRN_UnassignedThisSupportedVersion), ReportDiagnostic.Error), parseOptions: TestOptions.Regular11)
SourceGeneration\GeneratorDriverTests.cs (4)
1176
verifyDiagnosticsWithOptions(options.
WithSpecificDiagnosticOptions
("GEN001", ReportDiagnostic.Suppress),
1179
verifyDiagnosticsWithOptions(options.
WithSpecificDiagnosticOptions
("GEN002", ReportDiagnostic.Suppress),
1193
verifyDiagnosticsWithOptions(options.
WithSpecificDiagnosticOptions
("GEN001", ReportDiagnostic.Error),
1197
verifyDiagnosticsWithOptions(options.
WithSpecificDiagnosticOptions
("GEN002", ReportDiagnostic.Error),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\CovariantReturnTests.cs (1)
515
options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
("CS1701", ReportDiagnostic.Suppress),
Symbols\GenericConstraintTests.cs (1)
7312
comp.WithOptions(comp.Options.
WithSpecificDiagnosticOptions
("CS1701", ReportDiagnostic.Suppress)),