23 references to DiagnosticSeverity
ilasm (2)
Program.cs (2)
235if (diagnostic.Severity == DiagnosticSeverity.Error) 240else if (diagnostic.Severity == DiagnosticSeverity.Warning && !errorTolerant)
ILAssembler (21)
Actions\GrammarActions.BuildImage.cs (1)
66var structuralErrors = _diagnostics.Where(d => d.Severity == DiagnosticSeverity.Error && !IsRecoverableError(d.Id));
Actions\GrammarActions.Conversions.cs (5)
78private void ReportDiagnostic(DiagnosticSeverity severity, string id, string message, Antlr4.Runtime.ParserRuleContext context) 85=> ReportDiagnostic(DiagnosticSeverity.Error, id, message, context); 126DiagnosticSeverity.Error, 132=> ReportDiagnostic(DiagnosticSeverity.Warning, id, message, context); 138DiagnosticSeverity.Warning,
Actions\GrammarActions.Literals.cs (2)
175DiagnosticSeverity.Error, 214DiagnosticSeverity.Error,
Actions\GrammarActions.Manifest.Assembly.cs (1)
192DiagnosticSeverity.Error,
Actions\GrammarActions.Types.Headers.cs (1)
175DiagnosticSeverity.Error,
Diagnostic.cs (1)
14public record Diagnostic(string Id, DiagnosticSeverity Severity, string Message, Location Location);
DocumentCompiler.cs (6)
44diagnostics.Add(new Diagnostic("Preprocessor", DiagnosticSeverity.Error, msg, new Location(new(start, length), sourceText))); 48diagnostics.Add(new Diagnostic("Preprocessor", DiagnosticSeverity.Error, msg, new Location(new(start, length), new SourceText("", source)))); 79bool anyErrors = diagnostics.Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error); 80anyErrors |= image.Diagnostics.Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error); 116_diagnostics.Add(new Diagnostic("Parser", DiagnosticSeverity.Error, $"line {line}:{charPositionInLine} {msg}", new Location(span, sourceText))); 120_diagnostics.Add(new Diagnostic("Parser", DiagnosticSeverity.Error, $"line {line}:{charPositionInLine} {msg}", new Location(span, new SourceText("", sourceName))));
MethodBodyWriter.cs (3)
211_diagnostics.Add(new Diagnostic(DiagnosticIds.BranchOffsetOutOfRange, DiagnosticSeverity.Error, 245_diagnostics.Add(new Diagnostic(DiagnosticIds.InvalidExceptionRegion, DiagnosticSeverity.Error, 252_diagnostics.Add(new Diagnostic(DiagnosticIds.InvalidExceptionRegion, DiagnosticSeverity.Error,
PseudoCustomAttributes.cs (1)
91diagnostics.Add(new Diagnostic(id, DiagnosticSeverity.Error, message, Attribute.Location ?? s_unknownLocation));