antlr4ng
Version:
Alternative JavaScript/TypeScript runtime for ANTLR4
16 lines (15 loc) • 559 B
TypeScript
import { PredictionContext } from "./PredictionContext.js";
import { SingletonPredictionContext } from "./SingletonPredictionContext.js";
export declare class EmptyPredictionContext extends SingletonPredictionContext {
/**
* Represents `$` in local context prediction, which means wildcard.
* `*+x = *`.
*/
static readonly instance: EmptyPredictionContext;
constructor();
isEmpty(): boolean;
getParent(): PredictionContext | null;
getReturnState(): number;
equals(other: unknown): boolean;
toString(): string;
}