74 references to WithSpecificDiagnosticOptions
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
169csharpCompilationOptions = csharpCompilationOptions.WithSpecificDiagnosticOptions(
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
449WithSpecificDiagnosticOptions(specificDiagnosticOptions);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
4749useCompilation = useCompilation.WithOptions(useCompilation.Options.WithSpecificDiagnosticOptions(warnings));
Emit\EmitErrorTests.cs (1)
306var compilation1 = CreateCompilation(builder.ToString(), null, TestOptions.DebugDll.WithSpecificDiagnosticOptions(warnOpts));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (18)
Attributes\AttributeTests_Assembly.cs (3)
184other = other.WithOptions(other.Options.WithSpecificDiagnosticOptions(warnings)); 216other = other.WithOptions(other.Options.WithSpecificDiagnosticOptions(warnings)); 432compilation = compilation.WithOptions(compilation.Options.WithSpecificDiagnosticOptions(warnings));
Diagnostics\DiagnosticAnalyzerTests.cs (8)
320var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 336options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 348options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 462options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 534options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 541options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 1142var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 1151options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
Semantics\CollectionExpressionTests.cs (7)
22724comp = CreateCompilation(new[] { sourceB, s_collectionExtensions }, references: new[] { refA }, targetFramework: TargetFramework.Net60, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 25148var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 26360var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 28481CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics( 30830var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 31144CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics( 33429var comp = CreateCompilation(new[] { source, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SemanticErrorTests.cs (2)
2115var comp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() 11040CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(noWarns)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CSharpCompilationOptionsTests.cs (1)
235Assert.Equal(3, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithSpecificDiagnosticOptions(warnings).SpecificDiagnosticOptions.Count);
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
5760var comp = CreateCompilation(tree, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(warnDict), assemblyName: "Test");
Symbols\SymbolErrorTests.cs (1)
108options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_UnreferencedField), ReportDiagnostic.Suppress } }),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (46)
Diagnostics\DiagnosticTest.cs (46)
577CSharpCompilationOptions option = TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(warnings); 587option = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Default).WithSpecificDiagnosticOptions(warnings); 621CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 628option = commonoption.WithSpecificDiagnosticOptions(warnings); 652option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 681CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 699option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 732CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 756option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 788CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 812option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 844CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 868option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 902CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 926option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 960CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 984option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1019CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1049option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1089CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1125option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1160CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1190option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1225CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1243option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1278CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1296option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1332CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1350option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1382CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1394option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1433CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1451option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1489CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1506option = commonoption.WithSpecificDiagnosticOptions(warnings); 1556CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1606CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1662CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1709CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1746CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1779CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1789option = commonoption.WithSpecificDiagnosticOptions(warnings); 1828CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1841option = commonoption.WithSpecificDiagnosticOptions(warnings); 2252CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 2271option = commonoption.WithSpecificDiagnosticOptions(warnings);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
149.WithSpecificDiagnosticOptions(diagnosticOptions)