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