74 references to WithSpecificDiagnosticOptions
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
169
csharpCompilationOptions = csharpCompilationOptions.
WithSpecificDiagnosticOptions
(
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
449
WithSpecificDiagnosticOptions
(specificDiagnosticOptions);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
4749
useCompilation = useCompilation.WithOptions(useCompilation.Options.
WithSpecificDiagnosticOptions
(warnings));
Emit\EmitErrorTests.cs (1)
306
var compilation1 = CreateCompilation(builder.ToString(), null, TestOptions.DebugDll.
WithSpecificDiagnosticOptions
(warnOpts));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (18)
Attributes\AttributeTests_Assembly.cs (3)
184
other = other.WithOptions(other.Options.
WithSpecificDiagnosticOptions
(warnings));
216
other = other.WithOptions(other.Options.
WithSpecificDiagnosticOptions
(warnings));
432
compilation = compilation.WithOptions(compilation.Options.
WithSpecificDiagnosticOptions
(warnings));
Diagnostics\DiagnosticAnalyzerTests.cs (8)
320
var options = TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(specificDiagOptions);
336
options = TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(specificDiagOptions);
348
options = TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(specificDiagOptions);
462
options = TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(specificDiagOptions);
534
options = TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(specificDiagOptions);
541
options = TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(specificDiagOptions);
1142
var options = TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(specificDiagOptions);
1151
options = TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(specificDiagOptions);
Semantics\CollectionExpressionTests.cs (7)
22790
comp = CreateCompilation(new[] { sourceB, s_collectionExtensions }, references: new[] { refA }, targetFramework: TargetFramework.Net60, options: TestOptions.ReleaseExe.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning));
25221
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning));
26433
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning));
28554
CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning)).VerifyEmitDiagnostics(
30913
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning));
31227
CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning)).VerifyEmitDiagnostics(
33512
var comp = CreateCompilation(new[] { source, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SemanticErrorTests.cs (2)
2115
var comp = CreateCompilation(text, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(new Dictionary<string, ReportDiagnostic>()
11040
CreateCompilation(text, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(noWarns)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CSharpCompilationOptionsTests.cs (1)
235
Assert.Equal(3, new CSharpCompilationOptions(OutputKind.ConsoleApplication).
WithSpecificDiagnosticOptions
(warnings).SpecificDiagnosticOptions.Count);
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
5760
var comp = CreateCompilation(tree, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(warnDict), assemblyName: "Test");
Symbols\SymbolErrorTests.cs (1)
108
options: 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)
571
CSharpCompilationOptions option = TestOptions.ReleaseExe.
WithSpecificDiagnosticOptions
(warnings);
581
option = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Default).
WithSpecificDiagnosticOptions
(warnings);
615
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
622
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
646
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
675
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
693
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
726
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
750
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
782
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
806
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
838
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
862
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
896
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
920
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
954
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
978
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1013
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1043
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1083
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1119
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1154
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1184
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1219
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1237
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1272
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1290
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1326
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1344
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1376
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1388
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1427
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1445
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1483
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1500
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1550
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1600
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1656
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1703
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1740
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1773
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1783
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1822
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1835
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
2246
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
2265
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
149
.
WithSpecificDiagnosticOptions
(diagnosticOptions)