forked from jasder/antlr
fix regression
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9896]
This commit is contained in:
parent
9ffe9d2ee3
commit
89ad588023
|
@ -177,6 +177,15 @@ public class ActionTranslator implements ActionSplitterListener {
|
|||
chunks.add(new QRetValueRef(getRuleLabel(x.getText()), y.getText())); break;
|
||||
}
|
||||
case PREDEFINED_RULE:
|
||||
if ( factory.getCurrentRuleFunction()!=null &&
|
||||
factory.getCurrentRuleFunction().name.equals(x.getText()) )
|
||||
{
|
||||
chunks.add(getRulePropertyRef(y));
|
||||
}
|
||||
else {
|
||||
chunks.add(getRulePropertyRef(x, y));
|
||||
}
|
||||
break;
|
||||
case TOKEN:
|
||||
chunks.add(getTokenPropertyRef(x, y));
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue