/** * ANTLR error listener that collects lexer and parser diagnostics into * a shared array instead of writing them to stderr (ANTLR's default). * * A single listener instance is wired to both the lexer and the parser * so all diagnostics end up in one ordered collection, making * multi-error reporting straightforward. */ import { BaseErrorListener, Token, type ATNSimulator, type RecognitionException, type Recognizer } from 'antlr4ng'; import type { ParserDiagnostic } from './errors.js'; export declare class DiagnosticCollector extends BaseErrorListener { private readonly collected; syntaxError(recognizer: Recognizer, offendingSymbol: Token | number | null, line: number, charPositionInLine: number, msg: string, _e: RecognitionException | null): void; get diagnostics(): readonly ParserDiagnostic[]; } //# sourceMappingURL=error-listener.d.ts.map