UNPKG

863 BTypeScriptView 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 { ParserRuleContext } from "./ParserRuleContext";
6/** A handy class for use with
7 *
8 * options {contextSuperClass=org.antlr.v4.runtime.RuleContextWithAltNum;}
9 *
10 * that provides a backing field / impl for the outer alternative number
11 * matched for an internal parse tree node.
12 *
13 * I'm only putting into Java runtime as I'm certain I'm the only one that
14 * will really every use this.
15 */
16export declare class RuleContextWithAltNum extends ParserRuleContext {
17 private _altNumber;
18 constructor();
19 constructor(parent: ParserRuleContext | undefined, invokingStateNumber: number);
20 get altNumber(): number;
21 set altNumber(altNum: number);
22}