23 references to Severity
Microsoft.CodeAnalysis (23)
Binding\BindingDiagnosticBag.cs (2)
249
if (info.
Severity
== DiagnosticSeverity.Error)
308
return info.
Severity
== DiagnosticSeverity.Error;
Binding\UseSiteInfo.cs (9)
60
Debug.Assert(diagnosticInfo?.
Severity
!= DiagnosticSeverity.Error || (primaryDependency is null && secondaryDependencies?.IsEmpty != false));
75
if (diagnosticInfo?.
Severity
== DiagnosticSeverity.Error)
81
Debug.Assert(DiagnosticInfo?.
Severity
!= DiagnosticSeverity.Error);
211
Debug.Assert(_hasErrors == (_diagnostics?.Any(d => d.
Severity
== DiagnosticSeverity.Error) ?? false));
245
info.DiagnosticInfo?.
Severity
== DiagnosticSeverity.Error)
282
if (_diagnostics.Add(diagnosticInfo) && diagnosticInfo?.
Severity
== DiagnosticSeverity.Error)
474
Debug.Assert(diagnosticInfo is null || diagnosticInfo.
Severity
== DiagnosticSeverity.Error);
487
Debug.Assert(primaryDependency == useSiteInfo.PrimaryDependency || useSiteInfo.DiagnosticInfo?.
Severity
== DiagnosticSeverity.Error);
500
if (diagnosticInfo?.
Severity
== DiagnosticSeverity.Error)
Diagnostic\DiagnosticInfo.cs (6)
165
if (
Severity
!= severity)
170
Debug.Assert(severity == result.
Severity
);
209
/// To get diagnostic's effective severity, use <see cref="
Severity
"/>.
240
/// True implies <see cref="
Severity
"/> = <see cref="DiagnosticSeverity.Error"/> and
248
this.
Severity
== DiagnosticSeverity.Error;
391
_messageProvider.GetMessagePrefix(this.MessageIdentifier, this.
Severity
, this.IsWarningAsError, formatProvider as CultureInfo),
Diagnostic\DiagnosticWithInfo.cs (5)
76
get { return this.Info.
Severity
; }
116
if (_info.
Severity
== InternalDiagnosticSeverity.Unknown)
133
return _info.
Severity
== InternalDiagnosticSeverity.Unknown ||
134
_info.
Severity
== InternalDiagnosticSeverity.Void;
177
switch (_info.
Severity
)
Syntax\SyntaxNode.cs (1)
1643
info => info.
Severity
== DiagnosticSeverity.Error);