58 references to WithSpecificDiagnosticOptions
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (2)
5579var options = TestOptions.DebugDll.WithSpecificDiagnosticOptions("CS0169", ReportDiagnostic.Error); 5624var options = TestOptions.DebugDll.WithSpecificDiagnosticOptions("CS0612", ReportDiagnostic.Error);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
FirstClassSpanTests.cs (4)
2002options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress), 2161options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 2399options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 2632options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
Semantics\RecordTests.cs (1)
30238var 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)
6364var comp2 = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 125112comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().WithSpecificDiagnosticOptions(id, option)); 125135comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 125154WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 125164comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error)); 125174WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error). 125195WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 125200WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress). 125210comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 125220WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden). 125241WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 125470comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 125489WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 125499comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error)); 125509WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error). 125530WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 125535WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress). 125545comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 125555WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden). 125576WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 126004comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 126013WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 126018comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error)); 126023WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error). 126034WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 126039WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress). 126049comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 126054WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden). 126065WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 126080comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable().WithSpecificDiagnosticOptions(id, option)); 126150comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 126159WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 126164comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error)); 126169WithSpecificDiagnosticOptions(id, ReportDiagnostic.Error). 126180WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 126185WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress). 126195comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden)); 126200WithSpecificDiagnosticOptions(id, ReportDiagnostic.Hidden). 126211WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 144986options: WithNullableEnable().WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 144999options: 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)
3901CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(GetIdForErrorCode(ErrorCode.WRN_UnassignedThisSupportedVersion), ReportDiagnostic.Error), parseOptions: TestOptions.Regular11)
SourceGeneration\GeneratorDriverTests.cs (4)
1176verifyDiagnosticsWithOptions(options.WithSpecificDiagnosticOptions("GEN001", ReportDiagnostic.Suppress), 1179verifyDiagnosticsWithOptions(options.WithSpecificDiagnosticOptions("GEN002", ReportDiagnostic.Suppress), 1193verifyDiagnosticsWithOptions(options.WithSpecificDiagnosticOptions("GEN001", ReportDiagnostic.Error), 1197verifyDiagnosticsWithOptions(options.WithSpecificDiagnosticOptions("GEN002", ReportDiagnostic.Error),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\CovariantReturnTests.cs (1)
515options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress),
Symbols\GenericConstraintTests.cs (1)
7312comp.WithOptions(comp.Options.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress)),