1 /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
2 * Use of this file is governed by the BSD 3-clause license that
3 * can be found in the LICENSE.txt file in the project root.
8 #include "ParserRuleContext.h"
12 /// A handy class for use with
14 /// options {contextSuperClass=org.antlr.v4.runtime.RuleContextWithAltNum;}
16 /// that provides a backing field / impl for the outer alternative number
17 /// matched for an internal parse tree node.
19 /// I'm only putting into Java runtime as I'm certain I'm the only one that
20 /// will really every use this.
21 class ANTLR4CPP_PUBLIC RuleContextWithAltNum : public ParserRuleContext {
25 RuleContextWithAltNum();
26 RuleContextWithAltNum(ParserRuleContext *parent, int invokingStateNumber);
28 virtual size_t getAltNumber() const override;
29 virtual void setAltNumber(size_t altNum) override;