Files
motia/.npm-cache/_npx/0ebd1cb7ec11dd1f/node_modules/antlr4ts/FailedPredicateException.d.ts
2025-10-19 14:57:07 +00:00

22 lines
914 B
TypeScript

/*!
* Copyright 2016 The ANTLR Project. All rights reserved.
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
*/
import { Parser } from "./Parser";
import { RecognitionException } from "./RecognitionException";
/** A semantic predicate failed during validation. Validation of predicates
* occurs when normally parsing the alternative just like matching a token.
* Disambiguating predicate evaluation occurs when we test a predicate during
* prediction.
*/
export declare class FailedPredicateException extends RecognitionException {
private _ruleIndex;
private _predicateIndex;
private _predicate?;
constructor(recognizer: Parser, predicate?: string, message?: string);
get ruleIndex(): number;
get predicateIndex(): number;
get predicate(): string | undefined;
private static formatMessage;
}