Commits

Tim Vernum committed 4d5e8ab

Improve AST for constructor references

  • Participants
  • Parent commits e20fcbf

Comments (0)

Files changed (1)

File parser/source/grammar/java.jjt

 void MethodOrConstructorReference() #MemberReference : 
 {}
 {
-    "::" [ TypeArguments() ] ( Identifier() | "new" )
+    "::" [ TypeArguments() ] ( Identifier() | New() )
+}
+
+void New() :
+{} 
+{
+    "new"
 }
 
 void Literal():