Fixed a few AST problems (shallow branch duplication, IDENT being a parent).

This commit is contained in:
Michael Studman 2005-04-04 23:52:16 +00:00
parent 2a9fd54faa
commit 9fe0fc4f53
1 changed files with 3 additions and 3 deletions

View File

@ -245,7 +245,7 @@ classTypeSpec[boolean addImagNode]
;
classOrInterfaceType[boolean addImagNode]
: IDENT^ (typeArguments[addImagNode])?
: IDENT (typeArguments[addImagNode])?
(options{greedy=true;}: // match as many as possible
DOT^
IDENT (typeArguments[addImagNode])?
@ -830,10 +830,10 @@ explicitConstructorInvocation
variableDefinitions[AST mods, AST t]
: variableDeclarator[(AST) getASTFactory().dupTree(mods),
(AST) getASTFactory().dupTree(t)]
(AST) getASTFactory().dupList(t)] //dupList as this also copies siblings (like TYPE_ARGUMENTS)
( COMMA
variableDeclarator[(AST) getASTFactory().dupTree(mods),
(AST) getASTFactory().dupTree(t)]
(AST) getASTFactory().dupList(t)] //dupList as this also copies siblings (like TYPE_ARGUMENTS)
)*
;