Coral 0.2.17 candidate API
    Preparing search index...

    Interface ParseDiagnostic

    A diagnostic from a parser, which always knows where it is.

    Extends ParseError as well as Diagnostic and mirrors position into the flat line/column/offset fields, because ParseError is flat and the derived errors view must stay assignable to ParseError[] without a cast while remaining element-identical to the entries in diagnostics.

    interface ParseDiagnostic {
        code: string;
        column: number;
        hint?: string;
        line: number;
        message: string;
        offset: number;
        position: SourcePosition;
        range?: DiagnosticRange;
        related?: readonly DiagnosticRelatedLocation[];
        severity: DiagnosticSeverity;
        source?: string;
        subject?: DiagnosticSubject;
    }

    Hierarchy (View Summary)

    Index
    code: string

    <producer>.<construct>.<disposition>; the construct may itself be dotted.

    column: number
    hint?: string
    line: number
    message: string
    offset: number
    position: SourcePosition

    Exact half-open range when both boundaries are known.

    related?: readonly DiagnosticRelatedLocation[]
    source?: string

    Verbatim source slice that was dropped or degraded.