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)
571CSharpCompilationOptions option = TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(warnings); 581option = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Default).WithSpecificDiagnosticOptions(warnings); 615CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 622option = commonoption.WithSpecificDiagnosticOptions(warnings); 646option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 675CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 693option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 726CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 750option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 782CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 806option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 838CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 862option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 896CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 920option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 954CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 978option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1013CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1043option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1083CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1119option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1154CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1184option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1219CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1237option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1272CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1290option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1326CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1344option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1376CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1388option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1427CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1445option = commonoption.WithWarningLevel(2).WithSpecificDiagnosticOptions(warnings); 1483CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1500option = commonoption.WithSpecificDiagnosticOptions(warnings); 1550CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1600CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1656CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1703CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1740CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1773CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1783option = commonoption.WithSpecificDiagnosticOptions(warnings); 1822CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 1835option = commonoption.WithSpecificDiagnosticOptions(warnings); 2246CSharpCompilationOptions option = commonoption.WithSpecificDiagnosticOptions(warnings); 2265option = commonoption.WithSpecificDiagnosticOptions(warnings);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
149.WithSpecificDiagnosticOptions(diagnosticOptions)