didn't store parser::members in combined grammar

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9470]
This commit is contained in:
parrt 2011-11-26 13:04:15 -08:00
parent bb73ad341b
commit c2145a4120
1 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,8 @@ public class Grammar implements AttributeResolver {
}
else {
String scope = atAST.getChild(0).getText();
if ( scope.equals(getTypeString()) ) {
String gtype = getTypeString();
if ( scope.equals(gtype) || (scope.equals("parser")&&gtype.equals("combined")) ) {
String name = atAST.getChild(1).getText();
namedActions.put(name, (ActionAST)atAST.getChild(2));
}