165 Commits

Author SHA1 Message Date
Clément Fournier
4d0042f9d0 Fix type arg/shift ambig corner case 2019-05-26 16:39:19 +02:00
Clément Fournier
0939d4e1fc Fix some corner cases found in jdk12 sources 2019-05-26 16:39:19 +02:00
Clément Fournier
501bfa80b0 Forbid method references to be stacked 2019-05-26 16:39:19 +02:00
Clément Fournier
2379c099cd Remove jjtclose hook of array access 2019-05-26 16:39:19 +02:00
Clément Fournier
691537eeff Remove jjtclose hook of constructor call 2019-05-26 16:39:19 +02:00
Clément Fournier
c18b3803d4 Simplify qualified this & super 2019-05-26 16:39:19 +02:00
Clément Fournier
066ec0f022 Make super keyword stricter 2019-05-26 16:39:19 +02:00
Clément Fournier
5af835ef86 Test method reference 2019-05-26 16:39:19 +02:00
Clément Fournier
c42723fa53 Fix lambda allowed in ternaries 2019-05-26 16:39:19 +02:00
Clément Fournier
17abff76ee Fix explicit constructor invoc args 2019-05-26 16:39:19 +02:00
Clément Fournier
13f052dcf2 Move lambda out of primary prefix 2019-05-26 16:39:19 +02:00
Clément Fournier
cfc31e42e9 Fix ambiguity between type args & LT comp 2019-05-26 16:39:19 +02:00
Clément Fournier
8ab8009be6 Fix constructor invoc ambiguity 2019-05-26 16:39:18 +02:00
Clément Fournier
68fa6198a1 Cleanup 2019-05-26 16:39:18 +02:00
Clément Fournier
0ef4ec74af Optimise primary prefix lookaheads 2019-05-26 16:39:18 +02:00
Andreas Dangel
399ef5c172 Merge branch 'pr-1759' into java-grammar 2019-05-26 12:56:44 +02:00
Clément Fournier
ae8ba5128b Fix annotated module declaration 2019-05-25 07:27:59 +02:00
Clément Fournier
d75b6dee3f Remove outdated todos 2019-05-23 01:00:33 +02:00
Clément Fournier
e3ccff3240 Comment fixes 2019-05-23 00:58:11 +02:00
Clément Fournier
08fda65e28 Improve explicit constructor invocation parsing 2019-05-22 23:51:03 +02:00
Clément Fournier
1df3dc5400 Fix parser choosing cast expression too easily 2019-05-22 03:58:15 +02:00
Clément Fournier
96ea14008a Optimise cast lookahead 2019-05-20 20:27:07 +02:00
Clément Fournier
05761b068b Rename ArgumentsList to ArgumentList 2019-05-20 20:27:07 +02:00
Clément Fournier
dd5afcfc90 Flesh out explicit constructor invoc API 2019-05-20 20:27:07 +02:00
Clément Fournier
ef7605ad6b Fix some nested lookeahead corner cases 2019-05-20 20:27:07 +02:00
Clément Fournier
592557e948 Fix constructor invocation ambiguity 2019-05-20 20:27:07 +02:00
Clément Fournier
dc4a0777e5 Use AnonymousClassDeclaration in enum constants too 2019-05-20 20:27:07 +02:00
Clément Fournier
a4533648bb Update jjt changelog 2019-05-20 20:25:05 +02:00
Clément Fournier
f2257efec7 Improve dsl 2019-05-20 20:25:05 +02:00
Clément Fournier
1966a7648c Cleanup grammar 2019-05-20 20:23:06 +02:00
Clément Fournier
5adccd362e Fix switch expression tests 2019-05-20 20:23:06 +02:00
Clément Fournier
b8d3225377 Improve dsl a bit 2019-05-20 20:23:06 +02:00
Clément Fournier
048a422e59 Remove useless stuff from grammar 2019-05-20 20:23:06 +02:00
Clément Fournier
7f2d3534cc Use LambdaParameter for lambda expressions 2019-05-20 20:23:06 +02:00
Clément Fournier
6ffa2f32b9 Simplify CastExpression Lookahead 2019-05-20 20:23:06 +02:00
Clément Fournier
8d8ef2ebf7 Make EqualityExpression same as ShiftExpr 2019-05-20 20:23:06 +02:00
Clément Fournier
6b97f8363d Stricter RelationalExpression parsing 2019-05-20 20:23:06 +02:00
Clément Fournier
c0eaa44540 Also make ShiftExpr like AdditiveExpr 2019-05-20 20:23:06 +02:00
Clément Fournier
8486825445 Do the same for MultiplicativExpr 2019-05-20 20:23:05 +02:00
Clément Fournier
614e083f01 Document 2019-05-20 20:23:05 +02:00
Clément Fournier
163529ccfd Left-recursive AdditiveExpr 2019-05-20 20:23:05 +02:00
Clément Fournier
a231d4761d Use ant replace instead of checking in JJTJavaParserState 2019-05-20 20:13:12 +02:00
Clément Fournier
d1f0c0fcd0 Test unary expressions 2019-05-20 20:13:12 +02:00
Clément Fournier
96915574dc Figure out Array alloc dims 2019-05-20 20:13:12 +02:00
Clément Fournier
7213a7d5d8 Get rid of AnnotatedType, reintroduce TypeBound
This is todo later
2019-05-20 20:13:12 +02:00
Clément Fournier
3e36c1621b Remove LateInitNode 2019-05-20 20:13:12 +02:00
Clément Fournier
9af293b694 Start removing LateInitNode w/ ArrayAccess 2019-05-20 20:13:12 +02:00
Clément Fournier
9fb592a0b0 Fix tests by unwrapping removed nodes 2019-05-20 20:13:12 +02:00
Clément Fournier
a9b5801650 Revert "Remove annotated type"
This reverts commit 6068851275447712a8d9ff08dae28f698b4b76e6.
2019-05-20 20:13:12 +02:00
Clément Fournier
90d4ce5fbd Remove annotated type 2019-05-20 20:13:12 +02:00