UNPKG

1.03 kBTypeScriptView Raw
1/*!
2 * Copyright 2016 The ANTLR Project. All rights reserved.
3 * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
4 */
5import { ANTLRErrorListener } from "./ANTLRErrorListener";
6import { RecognitionException } from "./RecognitionException";
7import { Recognizer } from "./Recognizer";
8/**
9 * This implementation of {@link ANTLRErrorListener} dispatches all calls to a
10 * collection of delegate listeners. This reduces the effort required to support multiple
11 * listeners.
12 *
13 * @author Sam Harwell
14 */
15export declare class ProxyErrorListener<TSymbol, TListener extends ANTLRErrorListener<TSymbol>> implements ANTLRErrorListener<TSymbol> {
16 private delegates;
17 constructor(delegates: TListener[]);
18 protected getDelegates(): ReadonlyArray<TListener>;
19 syntaxError<T extends TSymbol>(recognizer: Recognizer<T, any>, offendingSymbol: T | undefined, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined): void;
20}