forked from jasder/antlr
didn't store parser::members in combined grammar
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9470]
This commit is contained in:
parent
bb73ad341b
commit
c2145a4120
|
@ -264,7 +264,8 @@ public class Grammar implements AttributeResolver {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
String scope = atAST.getChild(0).getText();
|
String scope = atAST.getChild(0).getText();
|
||||||
if ( scope.equals(getTypeString()) ) {
|
String gtype = getTypeString();
|
||||||
|
if ( scope.equals(gtype) || (scope.equals("parser")&>ype.equals("combined")) ) {
|
||||||
String name = atAST.getChild(1).getText();
|
String name = atAST.getChild(1).getText();
|
||||||
namedActions.put(name, (ActionAST)atAST.getChild(2));
|
namedActions.put(name, (ActionAST)atAST.getChild(2));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue