Merge pull request #45 from RYDB3RG/master

small rule attribute fixes
This commit is contained in:
Mike Lischke 2016-11-01 10:45:13 +01:00 committed by GitHub
commit b9f81ab04e
3 changed files with 3 additions and 2 deletions

View File

@ -102,3 +102,4 @@ YYYY/MM/DD, github id, Full name, email
2016/08/11, BurtHarris, Ralph "Burt" Harris, Burt_Harris_antlr4@azxs.33mail.com
2016/08/19, andjo403, Andreas Jonson, andjo403@hotmail.com
2016/10/21, FloorGoddijn, Floor Goddijn, floor.goddijn[at]aimms.com
2016/11/01, RYDB3RG, Kai Stammerjohann, RYDB3RG@users.noreply.github.com

View File

@ -50,7 +50,7 @@ ParserRuleContext::ParserRuleContext()
}
ParserRuleContext::ParserRuleContext(ParserRuleContext *parent, size_t invokingStateNumber)
: RuleContext(parent, invokingStateNumber) {
: RuleContext(parent, invokingStateNumber), start(nullptr), stop(nullptr) {
}
void ParserRuleContext::copyFrom(ParserRuleContext *ctx) {

View File

@ -911,7 +911,7 @@ TokenPropertyRef_index(t) ::= "(<ctx(t)>-><t.label> != nullptr ? <ctx(t)>-><t.la
TokenPropertyRef_intHeader(t) ::= "<! Required but unused. !>"
TokenPropertyRef_int(t) ::= "(<ctx(t)>-><t.label> != nullptr ? std::stoi(<ctx(t)>-><t.label>->getText()) : 0)"
RulePropertyRef_stopHeaderHeader(r) ::= "<! Required but unused. !>"
RulePropertyRef_startHeader(r) ::= "<! Required but unused. !>"
RulePropertyRef_start(r) ::= "(<ctx(r)>-><r.label> != nullptr ? (<ctx(r)>-><r.label>->start) : nullptr)"
RulePropertyRef_stopHeader(r) ::= "<! Required but unused. !>"