antlr4ts
Version:
ANTLR 4 runtime for JavaScript written in Typescript
23 lines (22 loc) • 968 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 { ATNState } from "./ATNState";
import { RuleStartState } from "./RuleStartState";
import { Transition } from "./Transition";
import { TransitionType } from "./TransitionType";
/** */
export declare class RuleTransition extends Transition {
/** Ptr to the rule definition object for this rule ref */
ruleIndex: number;
precedence: number;
/** What node to begin computations following ref to rule */
followState: ATNState;
tailCall: boolean;
optimizedTailCall: boolean;
constructor(ruleStart: RuleStartState, ruleIndex: number, precedence: number, followState: ATNState);
get serializationType(): TransitionType;
get isEpsilon(): boolean;
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean;
}