Fixed a few AST problems (shallow branch duplication, IDENT being a parent).
This commit is contained in:
parent
2a9fd54faa
commit
9fe0fc4f53
|
|
@ -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)
|
||||
)*
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue