Something went wrong. Try again.
Quartz's default bases page plugin.
Something went wrong. Try again.
123456789101112131415161718192021222324import type { Span } from "./tokens";
export enum DiagnosticSeverity { Error = "error", Warning = "warning", Info = "info",}
export class CompilerError extends Error { public readonly span: Span; public readonly severity: DiagnosticSeverity;
constructor( message: string, span: Span, severity: DiagnosticSeverity = DiagnosticSeverity.Error, ) { super(message); this.name = "CompilerError"; this.span = span; this.severity = severity; }}