248 references to Default
BuildActionTelemetryTable (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (8)
46reportDiagnostic == ReportDiagnostic.Default)) 48if (treeOptions.TryGetValue(descriptor.Id, out reportDiagnostic) && reportDiagnostic != ReportDiagnostic.Default || 51Debug.Assert(reportDiagnostic != ReportDiagnostic.Default); 71reportDiagnostic == ReportDiagnostic.Default) 79if (severityInEditorConfig != ReportDiagnostic.Default) 87if (severityInGlobalConfig != ReportDiagnostic.Default) 182return ReportDiagnostic.Default; 203return ReportDiagnostic.Default;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
202ReportDiagnostic.Default;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
CSharpCompilerTest.cs (1)
96Assert.Equal(ReportDiagnostic.Default, compilationOptions.GeneralDiagnosticOption);
Microsoft.CodeAnalysis (18)
CommandLine\AnalyzerConfigSet.cs (1)
336severity = ReportDiagnostic.Default;
Compilation\SyntaxTreeOptionsProvider.cs (2)
83severity = ReportDiagnostic.Default; 93severity = ReportDiagnostic.Default;
Diagnostic\Diagnostic.cs (1)
536case ReportDiagnostic.Default:
DiagnosticAnalyzer\AnalyzerDriver.cs (4)
374Debug.Assert(!severityFilter.Contains(ReportDiagnostic.Default)); 956if (severity != ReportDiagnostic.Default) 983Debug.Assert(severity != ReportDiagnostic.Default); 1401if (!descriptor.IsEnabledByDefault && configuredSeverity == ReportDiagnostic.Default)
DiagnosticAnalyzer\AnalyzerManager.cs (1)
389if ((diagnosticOptions.TryGetValue(diag.Id, out var severity) && severity != ReportDiagnostic.Default) ||
RuleSet\RuleSet.cs (7)
79case ReportDiagnostic.Default: 87var generalOption = _generalDiagnosticOption == ReportDiagnostic.Default ? ReportDiagnostic.Default : action; 91if (item.Value != ReportDiagnostic.Suppress && item.Value != ReportDiagnostic.Default) 231case ReportDiagnostic.Default: 293return ReportDiagnostic.Default; 303var generalDiagnosticOption = ReportDiagnostic.Default;
RuleSet\RuleSetProcessor.cs (2)
99var generalOption = ReportDiagnostic.Default; 231return ReportDiagnostic.Default;
Microsoft.CodeAnalysis.CodeStyle (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (1)
53ReportDiagnostic.Hidden or ReportDiagnostic.Default => Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (8)
46reportDiagnostic == ReportDiagnostic.Default)) 48if (treeOptions.TryGetValue(descriptor.Id, out reportDiagnostic) && reportDiagnostic != ReportDiagnostic.Default || 51Debug.Assert(reportDiagnostic != ReportDiagnostic.Default); 71reportDiagnostic == ReportDiagnostic.Default) 79if (severityInEditorConfig != ReportDiagnostic.Default) 87if (severityInGlobalConfig != ReportDiagnostic.Default) 182return ReportDiagnostic.Default; 203return ReportDiagnostic.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (4)
42case ReportDiagnostic.Default: 56/// <para>If <paramref name="reportDiagnostic"/> is <see cref="ReportDiagnostic.Default"/>, returns 63if (reportDiagnostic != ReportDiagnostic.Default) 86var isNonDefault = reportDiagnostic != ReportDiagnostic.Default;
Microsoft.CodeAnalysis.CSharp (11)
CommandLine\CSharpCommandLineParser.cs (3)
117var generalDiagnosticOption = ReportDiagnostic.Default; 913generalDiagnosticOption = ReportDiagnostic.Default; 938warnAsErrors[id] = ReportDiagnostic.Default;
Compilation\CSharpDiagnosticFilter.cs (7)
195if (report == ReportDiagnostic.Default) 248report = isEnabledByDefault ? ReportDiagnostic.Default : ReportDiagnostic.Suppress; 277return ReportDiagnostic.Default; 279case ReportDiagnostic.Default: 285return ReportDiagnostic.Default; 299if (report == ReportDiagnostic.Default) 334Debug.Assert(report == ReportDiagnostic.Default);
CSharpCompilationOptions.cs (1)
63ReportDiagnostic generalDiagnosticOption = ReportDiagnostic.Default,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
102return severity == ReportDiagnostic.Default
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (35)
CommandLineTests.cs (35)
3143Assert.Equal(actual: arguments.CompilationOptions.GeneralDiagnosticOption, expected: ReportDiagnostic.Default); 3177Assert.Equal(actual: arguments.CompilationOptions.GeneralDiagnosticOption, expected: ReportDiagnostic.Default); 3245Assert.Equal(actual: arguments.CompilationOptions.GeneralDiagnosticOption, expected: ReportDiagnostic.Default); 3247Assert.Equal(actual: arguments.CompilationOptions.SpecificDiagnosticOptions["Test002"], expected: ReportDiagnostic.Default); 3279Assert.Equal(expected: ReportDiagnostic.Default, actual: arguments.CompilationOptions.GeneralDiagnosticOption); 3349Assert.Equal(expected: ReportDiagnostic.Default, actual: arguments.CompilationOptions.GeneralDiagnosticOption); 3373Assert.Equal(expected: ReportDiagnostic.Default, actual: arguments.CompilationOptions.GeneralDiagnosticOption); 3406Assert.Equal(expected: ReportDiagnostic.Default, actual: arguments.CompilationOptions.GeneralDiagnosticOption); 3439Assert.Equal(expected: ReportDiagnostic.Default, actual: arguments.CompilationOptions.GeneralDiagnosticOption); 3473Assert.Equal(expected: ReportDiagnostic.Default, actual: arguments.CompilationOptions.GeneralDiagnosticOption); 5438Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5444Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5456Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5462Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5468Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5470AssertSpecificDiagnostics(new[] { 1062, 1066, 1734 }, new[] { ReportDiagnostic.Default, ReportDiagnostic.Default, ReportDiagnostic.Default }, parsedArgs); 5474Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5478new[] { ReportDiagnostic.Error, ReportDiagnostic.Error, ReportDiagnostic.Error, ReportDiagnostic.Default, ReportDiagnostic.Default }, 5483Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5486AssertSpecificDiagnostics(new[] { 1062, 1066, 1734, 1974 }, new[] { ReportDiagnostic.Default, ReportDiagnostic.Error, ReportDiagnostic.Error, ReportDiagnostic.Default }, parsedArgs); 5490Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5492AssertSpecificDiagnostics(new[] { 1062, 1066, 1734, 1974 }, new[] { ReportDiagnostic.Error, ReportDiagnostic.Default, ReportDiagnostic.Default, ReportDiagnostic.Error }, parsedArgs); 5496Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5502Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5508Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5514Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5520Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5526Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 5532Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption); 13609if (analyzerConfigSeverity == ReportDiagnostic.Default)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
321generalDiagnosticOption: ReportDiagnostic.Default,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Diagnostics\DiagnosticAnalyzerTests.cs (6)
399var options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Default); 1279ReportDiagnostic generalOption = ReportDiagnostic.Default, 1302var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", ReportDiagnostic.Default } }; 3554new TestSyntaxTreeOptionsProvider((NamedTypeAnalyzer.RuleId, ReportDiagnostic.Suppress), (tree1, new[] { (NamedTypeAnalyzer.RuleId, ReportDiagnostic.Default) }))); 4274severity = ReportDiagnostic.Default; 4281severity = ReportDiagnostic.Default;
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
102return severity == ReportDiagnostic.Default
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (25)
Semantics\NullableReferenceTypesTests.cs (25)
125135comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 125144comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 125154WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 125175WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 125241WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 125314comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Default)); 125317comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 125321WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Default). 125330WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 125363WithSpecificDiagnosticOptions(id1, id2, ReportDiagnostic.Default). 125470comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 125479comp = CreateCompilation(new[] { source, source2 }, options: options.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 125489WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 125510WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 125576WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 126004comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 126008comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 126013WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 126024WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 126065WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 126150comp = CreateCompilation(new[] { source, source2 }, options: options.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default)); 126154comp = CreateCompilation(new[] { source, source2 }, options: options.WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 126159WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default). 126170WithGeneralDiagnosticOption(ReportDiagnostic.Default)); 126211WithSpecificDiagnosticOptions(id, ReportDiagnostic.Default).
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CSharpCompilationOptionsTests.cs (3)
193Assert.Equal(ReportDiagnostic.Default, defaultWarnings.GeneralDiagnosticOption); 197Assert.Equal(ReportDiagnostic.Default, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithGeneralDiagnosticOption(ReportDiagnostic.Default).GeneralDiagnosticOption);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
581option = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Default).WithSpecificDiagnosticOptions(warnings);
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Data\AnalyzerSetting.cs (1)
27if (effectiveSeverity == ReportDiagnostic.Default)
EditorConfigSettings\Data\CodeStyleSetting.cs (1)
21if (severity is ReportDiagnostic.Default or ReportDiagnostic.Suppress)
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
113if (severity == ReportDiagnostic.Default)
Microsoft.CodeAnalysis.Rebuild (1)
VisualBasicCompilationFactory.cs (1)
115generalDiagnosticOption: ReportDiagnostic.Default,
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\TestSyntaxTreeOptionsProvider.cs (2)
79severity = ReportDiagnostic.Default; 90severity = ReportDiagnostic.Default;
Diagnostics\DiagnosticExtensions.cs (2)
213if (c.Options.GeneralDiagnosticOption == ReportDiagnostic.Default && 235ReportDiagnostic.Default :
Microsoft.CodeAnalysis.UnitTests (8)
CommonCommandLineParserTests.cs (8)
216Assert.Equal(ReportDiagnostic.Default, ruleSet.GeneralDiagnosticOption); 231Assert.Equal(ReportDiagnostic.Default, ruleSet.GeneralDiagnosticOption); 256Assert.Equal(ReportDiagnostic.Default, ruleSet.GeneralDiagnosticOption); 291Assert.Equal(ReportDiagnostic.Default, ruleSet.GeneralDiagnosticOption); 452Assert.Equal(ReportDiagnostic.Default, ruleSet.Includes.First().Action); 476Assert.Equal(ReportDiagnostic.Default, ruleSet.GeneralDiagnosticOption); 501Assert.Equal(ReportDiagnostic.Default, ruleSet.GeneralDiagnosticOption); 818Assert.Equal(ReportDiagnostic.Default, ruleSet.GeneralDiagnosticOption);
Microsoft.CodeAnalysis.VisualBasic (11)
CommandLine\VisualBasicCommandLineParser.vb (3)
148Dim generalDiagnosticOption As ReportDiagnostic = ReportDiagnostic.Default 846generalDiagnosticOption = ReportDiagnostic.Default 859specificDiagnosticOptionsFromSpecificArguments(id) = ReportDiagnostic.Default
Compilation\VisualBasicDiagnosticFilter.vb (3)
148If report = ReportDiagnostic.Default Then 195report = If(isEnabledByDefault, ReportDiagnostic.Default, ReportDiagnostic.Suppress) 227If (Not isSpecified) AndAlso (report = ReportDiagnostic.Default) Then
Syntax\VisualBasicWarningStateMap.vb (3)
50entries(index) = New WarningStateMapEntry(0, ReportDiagnostic.Default, Nothing) 53Dim accumulatedGeneralWarningState = ReportDiagnostic.Default 65reportingState = ReportDiagnostic.Default
VisualBasicCompilationOptions.vb (2)
88Optional generalDiagnosticOption As ReportDiagnostic = ReportDiagnostic.Default, 1295Optional generalDiagnosticOption As ReportDiagnostic = ReportDiagnostic.Default,
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (16)
CommandLineTests.vb (16)
5773Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5785Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5789Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5794Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5798Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5803Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5807Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5811Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5812AssertSpecificDiagnostics({42024, 42025}, {ReportDiagnostic.Default, ReportDiagnostic.Default}, parsedArgs) 5820Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 5824Assert.Equal(ReportDiagnostic.Default, parsedArgs.CompilationOptions.GeneralDiagnosticOption) 8755Assert.Equal(expected:=ReportDiagnostic.Default, actual:=arguments.CompilationOptions.GeneralDiagnosticOption) 8776Assert.Equal(expected:=ReportDiagnostic.Default, actual:=arguments.CompilationOptions.GeneralDiagnosticOption) 8818Assert.Equal(expected:=ReportDiagnostic.Default, actual:=arguments.CompilationOptions.GeneralDiagnosticOption) 8821Assert.Equal(expected:=ReportDiagnostic.Default, actual:=arguments.CompilationOptions.SpecificDiagnosticOptions("Test002"))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
209generalDiagnosticOption:=ReportDiagnostic.Default,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Diagnostics\DiagnosticAnalyzerTests.vb (3)
142Dim options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Default) 752Private Shared Sub TestEffectiveSeverity(defaultSeverity As DiagnosticSeverity, expectedEffectiveSeverity As ReportDiagnostic, Optional specificOptions As Dictionary(Of String, ReportDiagnostic) = Nothing, Optional generalOption As ReportDiagnostic = ReportDiagnostic.Default, Optional isEnabledByDefault As Boolean = True) 773Dim specificOptions = New Dictionary(Of String, ReportDiagnostic) From {{"Test0001", ReportDiagnostic.Default}}
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (46)
Parser\ParseDirectives.vb (46)
3413Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", 0)) 3414Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", 1)) 3415Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42104", 0)) 3416Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42104", 1)) 3418Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#Disable Warning") - 1)) 3419Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42104", GetEndPosition(tree, "#Disable Warning") - 1)) 3430Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#enable Warning"))) 3431Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "Sub Main()"))) 3432Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("bc42104", GetEndPosition(tree, "#enable Warning"))) 3433Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("bc42104", GetStartPosition(tree, "Sub Main()"))) 3437Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("Bc42104", GetEndPosition(tree, "#Disable Warning BC42024"))) 3438Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("Bc42104", GetEndPosition(tree, "Dim b"))) 3441Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#enable warning [bc42024]"))) 3442Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "Dim d"))) 3443Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("Bc42104", GetEndPosition(tree, "#enable warning [bc42024]") - 1)) 3444Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("Bc42104", GetEndPosition(tree, "#enable warning [bc42024]"))) 3445Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("Bc42104", GetEndPosition(tree, "Dim d"))) 3447Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#disable warning BC42024") - 1)) 3448Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#disable warning BC42024"))) 3449Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#disable warning BC42024, [bc42104]") - 1)) 3452Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("bc42104", GetEndPosition(tree, "#disable warning BC42024"))) 3453Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("bc42104", GetEndPosition(tree, "#disable warning BC42024, [bc42104]") - 1)) 3458Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#enable Warning"))) 3460Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("bc42104", GetEndPosition(tree, "#enable Warning"))) 3464Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", endPos)) 3466Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("bc42104", endPos)) 3492Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", 0)) 3493Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", 1)) 3494Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", 0)) 3495Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", 1)) 3497Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetStartPosition(tree, "#disable warning bc42024, bc42025"))) 3498Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#disable warning bc42024, bc42025") + 1)) 3499Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", GetStartPosition(tree, "#disable warning bc42024, bc42025"))) 3500Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", GetEndPosition(tree, "#disable warning bc42024, bc42025") + 1)) 3502Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetStartPosition(tree, "#Disable Warning bc42024, [BC42025]"))) 3504Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", GetStartPosition(tree, "#Disable Warning bc42024, [BC42025]"))) 3513Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#Enable Warning [bc42025], [bC42024]"))) 3515Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", GetEndPosition(tree, "#Enable Warning [bc42025], [bC42024]"))) 3517Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetStartPosition(tree, "#Disable Warning bc42024, bc42025"))) 3518Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", GetEndPosition(tree, "#Disable Warning bc42024, bc42025"))) 3519Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", GetStartPosition(tree, "#Disable Warning bc42024, bc42025"))) 3520Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", GetEndPosition(tree, "#Disable Warning bc42024, bc42025"))) 3523Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", endPos - 1)) 3524Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42024", endPos)) 3525Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", endPos - 1)) 3526Assert.Equal(ReportDiagnostic.Default, tree.GetWarningState("BC42025", endPos))
Microsoft.CodeAnalysis.Workspaces (14)
Diagnostics\DiagnosticData.cs (1)
314case ReportDiagnostic.Default:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (1)
53ReportDiagnostic.Hidden or ReportDiagnostic.Default => Silent,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (8)
46reportDiagnostic == ReportDiagnostic.Default)) 48if (treeOptions.TryGetValue(descriptor.Id, out reportDiagnostic) && reportDiagnostic != ReportDiagnostic.Default || 51Debug.Assert(reportDiagnostic != ReportDiagnostic.Default); 71reportDiagnostic == ReportDiagnostic.Default) 79if (severityInEditorConfig != ReportDiagnostic.Default) 87if (severityInGlobalConfig != ReportDiagnostic.Default) 182return ReportDiagnostic.Default; 203return ReportDiagnostic.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (4)
42case ReportDiagnostic.Default: 56/// <para>If <paramref name="reportDiagnostic"/> is <see cref="ReportDiagnostic.Default"/>, returns 63if (reportDiagnostic != ReportDiagnostic.Default) 86var isNonDefault = reportDiagnostic != ReportDiagnostic.Default;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
410var reportDiagnostic = ReportDiagnostic.Default;
Workspaces\TestWorkspace_XmlCreation.cs (1)
163if (options.GeneralDiagnosticOption != ReportDiagnostic.Default)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (3)
77generalDiagnosticOption = warningsAreErrors.Value ? ReportDiagnostic.Error : ReportDiagnostic.Default; 85generalDiagnosticOption = ReportDiagnostic.Default; 117diagnosticOptions[diagnosticID] = ReportDiagnostic.Default;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\CPS\AnalyzersTests.cs (1)
37Assert.Equal(expected: ReportDiagnostic.Default, actual: options.GeneralDiagnosticOption);
ProjectSystemShim\LegacyProject\AnalyzersTests.cs (1)
41Assert.Equal(expected: ReportDiagnostic.Default, actual: options.GeneralDiagnosticOption);
Microsoft.VisualStudio.LanguageServices.UnitTests (7)
ProjectSystemShim\ConvertedVisualBasicProjectOptionsTests.vb (3)
108Assert.Equal(expected:=ReportDiagnostic.Default, actual:=convertedOptions.SpecificDiagnosticOptions("Test002")) 143Assert.Equal(expected:=ReportDiagnostic.Default, actual:=convertedOptions.GeneralDiagnosticOption) 149Optional ruleSetGeneralOption As ReportDiagnostic = ReportDiagnostic.Default,
ProjectSystemShim\VisualStudioRuleSetTests.vb (1)
274Assert.Equal(expected:=ReportDiagnostic.Default, actual:=generalDiagnosticOption)
SolutionExplorer\RuleSetDocumentExtensionsTests.vb (3)
118document.SetSeverity("Alpha.Analyzer", "Test001", ReportDiagnostic.Default) 140document.SetSeverity("Alpha.Analyzer", "Test001", ReportDiagnostic.Default) 165document.SetSeverity("Alpha.Analyzer", "Test001", ReportDiagnostic.Default)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (2)
296diagnosticOptions(diagnosticID) = ReportDiagnostic.Default 313Return ReportDiagnostic.Default