Skip to content
Snippets Groups Projects
Commit 09a96649 authored by Jesper's avatar Jesper
Browse files

[parsing] Allow Java 8 array constructor references

fixes #323
parent bae013d4
No related branches found
No related tags found
No related merge requests found
2020-05-14 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Fixed aspect parsing issue for Java 8 array constructor references.
See https://bitbucket.org/jastadd/jastadd2/issues/323/parsing-of-array-constructor-references
2019-11-29 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Deprecated some old options: lazyMaps, private, traceVisitCheck,
......
......@@ -2179,6 +2179,7 @@ void PrimarySuffix() :
LOOKAHEAD(3)
"." TypeArguments() JavaIdentifier()
|
LOOKAHEAD(2)
"[" Expression() "]"
|
"." JavaIdentifier()
......@@ -2190,6 +2191,10 @@ void PrimarySuffix() :
|
LOOKAHEAD(2)
"::" JavaIdentifier()
|
// Array constructor reference
LOOKAHEAD(2)
"[" "]" "::" "new"
}
void Literal() :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment