Adding test cases and fixing review comments

This commit is contained in:
Rohit Kumar
2018-11-12 17:35:29 +05:30
parent 6fb8b6b1b6
commit 874b528da8
2 changed files with 22 additions and 1 deletions

View File

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