Adding the fix for #1440

This commit is contained in:
Rohit Kumar
2018-11-12 01:56:35 +05:30
parent 1cfc477e48
commit 6fb8b6b1b6

View File

@ -1854,7 +1854,7 @@ void ConstructorDeclaration(int modifiers) :
Token t;} Token t;}
{ {
[ TypeParameters() ] [ TypeParameters() ]
<IDENTIFIER> FormalParameters() [ "throws" NameList() ] t=<IDENTIFIER> {jjtThis.setImage(t.image);} FormalParameters() [ "throws" NameList() ]
"{" "{"
[ LOOKAHEAD(ExplicitConstructorInvocation()) ExplicitConstructorInvocation() ] [ LOOKAHEAD(ExplicitConstructorInvocation()) ExplicitConstructorInvocation() ]
( BlockStatement() )* ( BlockStatement() )*