2 overrides of DefaultSeverity
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticWithInfo.cs (1)
79public sealed override DiagnosticSeverity DefaultSeverity
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
EvaluationContextBase.cs (1)
136public override DiagnosticSeverity DefaultSeverity
24 references to DefaultSeverity
Microsoft.CodeAnalysis (11)
CommandLine\SarifErrorLogger.cs (1)
90Debug.Assert(diagnostic.DefaultSeverity == diagnostic.Descriptor.DefaultSeverity);
Diagnostic\Diagnostic.cs (4)
327/// To get the default severity of diagnostic's <see cref="DiagnosticDescriptor"/>, use <see cref="DefaultSeverity"/>. 377/// True implies <see cref="DefaultSeverity"/> = <see cref="DiagnosticSeverity.Warning"/> 384return this.DefaultSeverity == DiagnosticSeverity.Warning && 590=> DefaultSeverity == DiagnosticSeverity.Error && IsNotConfigurable();
Diagnostic\DiagnosticBag.cs (2)
74if (diagnostic.DefaultSeverity == DiagnosticSeverity.Error) 102if ((diagnostic as DiagnosticWithInfo)?.HasLazyInfo != true && diagnostic.DefaultSeverity == DiagnosticSeverity.Error)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1051d.DefaultSeverity != DiagnosticSeverity.Error &&
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (1)
1894/// 2. Diagnostic's <see cref="Diagnostic.DefaultSeverity"/> is not <see cref="DiagnosticSeverity.Error"/>.
DiagnosticAnalyzer\DiagnosticSuppressor.cs (1)
35/// 2. Diagnostic's <see cref="Diagnostic.DefaultSeverity"/> is not <see cref="DiagnosticSeverity.Error"/>.
Operations\OperationExtensions.cs (1)
63return model.GetDiagnostics(operation.Syntax.Span, cancellationToken).Any(static d => d.DefaultSeverity == DiagnosticSeverity.Error);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Diagnostics\GetDiagnosticsTests.cs (4)
125Assert.Equal(DiagnosticSeverity.Warning, error.DefaultSeverity); 130Assert.Equal(DiagnosticSeverity.Warning, warning.DefaultSeverity); 135Assert.Equal(DiagnosticSeverity.Warning, hidden.DefaultSeverity); 140Assert.Equal(DiagnosticSeverity.Warning, info.DefaultSeverity);
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
372if (namespaceDecl.Name.GetDiagnostics().Any(diag => diag.DefaultSeverity == DiagnosticSeverity.Error))
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
93!_semanticModel.GetDiagnostics(_source.Span, _cancellationToken).Any(static diagnostic => diagnostic.DefaultSeverity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\UsedAssembliesTests.cs (1)
282Assert.True(diagnostics.Any(d => d.DefaultSeverity == DiagnosticSeverity.Error));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1365if (!compileDiagnostics.Any(d => d.DefaultSeverity == DiagnosticSeverity.Error) &&
Microsoft.CodeAnalysis.Features (3)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
115severity = diagnostic.DefaultSeverity.ToReportDiagnostic();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
76defaultSeverity: diagnostic.DefaultSeverity,
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
42if (from.GetDiagnostics().Any(d => d.DefaultSeverity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticDescription.cs (1)
129_defaultSeverityOpt = includeDefaultSeverity ? d.DefaultSeverity : (DiagnosticSeverity?)null;
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\DiagnosticData.cs (1)
233diagnostic.DefaultSeverity,