14 references to DiagnosticSeverity
ilasm (2)
Program.cs (2)
232if (diagnostic.Severity == DiagnosticSeverity.Error) 237else if (diagnostic.Severity == DiagnosticSeverity.Warning && !errorTolerant)
ILAssembler (12)
Diagnostic.cs (1)
16public record Diagnostic(string Id, DiagnosticSeverity Severity, string Message, Location Location);
DocumentCompiler.cs (3)
42diagnostics.Add(new Diagnostic("Preprocessor", DiagnosticSeverity.Error, msg, new Location(new(start, length), loadedDocuments[source]))); 54bool anyErrors = diagnostics.Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error); 55anyErrors |= image.Diagnostics.Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error);
GrammarVisitor.cs (8)
122private void ReportDiagnostic(DiagnosticSeverity severity, string id, string message, Antlr4.Runtime.ParserRuleContext context) 129=> ReportDiagnostic(DiagnosticSeverity.Error, id, message, context); 132=> ReportDiagnostic(DiagnosticSeverity.Warning, id, message, context); 140var structuralErrors = _diagnostics.Where(d => d.Severity == DiagnosticSeverity.Error && !IsRecoverableError(d.Id)); 701_diagnostics.Add(new Diagnostic(DiagnosticIds.KeyFileError, DiagnosticSeverity.Error, $"Failed to read key file '{keyFilePath}': {ex.Message}", location)); 1222DiagnosticSeverity.Error, 3353DiagnosticSeverity.Error, 3378DiagnosticSeverity.Error,