adaptive-expressions
Version:
Common Expression Language
26 lines • 1.07 kB
TypeScript
/**
* @module adaptive-expressions
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { ANTLRErrorListener, RecognitionException, Recognizer } from 'antlr4ts';
/**
* Expression parser error listener.
*/
export declare class ParseErrorListener implements ANTLRErrorListener<any> {
static readonly Instance: ParseErrorListener;
/**
* Throws a syntax error based on the current context.
*
* @param _recognizer An Antlr4 runtime recognizer.
* @param _offendingSymbol The token violating the lexer rules.
* @param line The line number where the error occurred.
* @param charPositionInLine The position of character in the line where the error occurred.
* @param _msg The error message.
* @param _e The `RecognitionException`.
*/
syntaxError<T>(_recognizer: Recognizer<T, any>, _offendingSymbol: T, line: number, charPositionInLine: number, _msg: string, _e: RecognitionException | undefined): void;
}
//# sourceMappingURL=parseErrorListener.d.ts.map