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)
22724
comp = CreateCompilation(new[] { sourceB, s_collectionExtensions }, references: new[] { refA }, targetFramework: TargetFramework.Net60, options: TestOptions.ReleaseExe.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning));
25148
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning));
26360
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning));
28481
CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning)).VerifyEmitDiagnostics(
30830
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options: TestOptions.ReleaseDll.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning));
31144
CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe.
WithSpecificDiagnosticOptions
(WithSpanAllocWarning)).VerifyEmitDiagnostics(
33429
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)
577
CSharpCompilationOptions option = TestOptions.ReleaseExe.
WithSpecificDiagnosticOptions
(warnings);
587
option = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Default).
WithSpecificDiagnosticOptions
(warnings);
621
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
628
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
652
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
681
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
699
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
732
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
756
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
788
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
812
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
844
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
868
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
902
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
926
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
960
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
984
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1019
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1049
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1089
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1125
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1160
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1190
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1225
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1243
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1278
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1296
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1332
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1350
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1382
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1394
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1433
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1451
option = commonoption.WithWarningLevel(2).
WithSpecificDiagnosticOptions
(warnings);
1489
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1506
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1556
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1606
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1662
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1709
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1746
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1779
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1789
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1828
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
1841
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
2252
CSharpCompilationOptions option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
2271
option = commonoption.
WithSpecificDiagnosticOptions
(warnings);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
149
.
WithSpecificDiagnosticOptions
(diagnosticOptions)