Clément Fournier
080c0c15cb
Merge branch 'grammar-flatten-body-declarations' into java-grammar
2020-03-17 15:22:02 +01:00
Clément Fournier
fa58ac98d2
Add empty modifier list for pattern variables
2020-03-03 00:01:23 +01:00
Clément Fournier
9b720c81b1
Merge branch 'java-grammar' into grammar-flatten-body-declarations
2020-03-02 22:35:47 +01:00
Clément Fournier
2910303dd8
Merge branch '7.0.x' into java-grammar
2020-03-02 22:06:32 +01:00
Clément Fournier
f574b7929b
Merge branch 'master' into 7.0.x
2020-03-02 20:46:59 +01:00
Clément Fournier
18cc6a3e4e
Disallow throws clause on record constructor
2020-03-02 20:46:40 +01:00
Clément Fournier
c8c8a04dda
Fix new java nodes
2020-03-02 20:31:52 +01:00
Clément Fournier
9788a3af5d
Merge branch 'master' into 7.0.x
2020-03-02 19:12:28 +01:00
Clément Fournier
fc0b437ad7
Fix record ctor with throws
2020-03-02 19:00:59 +01:00
Andreas Dangel
f1fe8ce5e1
[java] Remove version java 12 preview
...
Keep the tests and move them to java 14
except for the break expression
2020-02-28 19:37:13 +01:00
Andreas Dangel
ee211d42b1
[java] Remove unneccessary annotation parsing
2020-02-28 19:07:03 +01:00
Andreas Dangel
7d3df99134
[java] RecordBody - test with more annotation and use deep lookahead
...
Record constructors are not allowed to throw exceptions.
2020-02-28 18:41:22 +01:00
Andreas Dangel
0ecd1da200
[java] Get rid of RecordBodyDeclaration node
2020-02-28 18:32:33 +01:00
Andreas Dangel
fa28aa7e23
[java] Test annotations with RecordComponents
2020-02-28 17:59:39 +01:00
Andreas Dangel
e017def280
[java] Support vararg/array in RecordComponent and empty components
2020-02-28 17:35:44 +01:00
Andreas Dangel
5f43e198d5
[java] RecordConstructorDeclaration - do not use Name()
2020-02-28 17:01:57 +01:00
Andreas Dangel
9917e3f422
[java] RecordComponents -> RecordComponentList
2020-02-28 16:56:43 +01:00
Andreas Dangel
e2d84d6741
[java] Add grammar jdoc for new Record types
2020-02-28 16:50:57 +01:00
Andreas Dangel
8a224462fd
[java] Add initial support for Java 14 Preview record types
2020-02-28 14:58:52 +01:00
Andreas Dangel
adfb2ab129
[java] Update grammar
2020-02-28 10:51:38 +01:00
Andreas Dangel
9a80f13164
[java] Fix new escape sequence "\s" detection
2020-02-27 21:23:33 +01:00
Andreas Dangel
d16751d136
[java] Add support for TextBlocks in Java14
...
* New escape sequence "\s" added
* Added experimental ASTLiteral::getTextBlockContent to retrieve
the text block with stripped indentation
2020-02-27 21:11:02 +01:00
Andreas Dangel
9d5b7554f0
[java] Make sure, SwitchExpressions with yield work with java14
...
Add additional tests for java14, so that we can later simply remove
the java13 preview tests
2020-02-27 18:30:39 +01:00
Clément Fournier
326784f5db
Merge branch 'java-grammar' into grammar-flatten-body-declarations
2020-02-21 14:56:22 +01:00
Andreas Dangel
a67043edc5
Merge branch 'pr-2282' into java-grammar
...
[java] Use single node for annotations
2020-02-20 11:08:16 +01:00
Clément Fournier
05e1ba0c10
Remove TypeDeclaration
2020-02-19 18:38:24 +01:00
Clément Fournier
297b177b3a
Remove ASTClassOrInterfaceBodyDeclaration
2020-02-19 18:38:24 +01:00
Andreas Dangel
8e8eec62d9
Merge branch 'pr-2272' into java-grammar
...
[java] Make enum body track trailing comma/semi
2020-02-18 19:23:17 +01:00
Clément Fournier
97b1870472
Unify repr of annotations
2020-02-12 22:25:04 +01:00
Clément Fournier
ad023e8fa6
Support type test patterns
2020-02-09 00:10:50 +01:00
Clément Fournier
2cd7a29d9b
Cleanup getImage calls in parser
2020-02-07 23:43:26 +01:00
Clément Fournier
1c09b28e56
Simplify Block::containsComment
...
Move logic out of the parser
2020-02-07 23:23:54 +01:00
Clément Fournier
c5fbfe5d87
Make enum body track trailing comma/semi
2020-02-07 20:02:25 +01:00
Clément Fournier
69ad3a7087
Simplify some jjtree aspects
2020-02-07 16:35:58 +01:00
Clément Fournier
1c5c80a516
Merge branch 'grammar-literals' into java-grammar
2020-02-07 14:58:41 +01:00
Clément Fournier
694d473f4d
Catch a few numbers that shouldn't parse
...
Fix literals
2020-01-28 15:57:21 +01:00
Clément Fournier
3191ef360d
Rework AccessNode
...
Introduce a ModifierList node, that ranges
over the modifiers of a declaration (including
annotations).
This is a combination of a few old commits:
Figure out modifiers
Fix tests
Remove AccessTypeNode
Document
Remove specific methods
Fix symboltable test
Fix tests
Rename to JModifier
Fix copypaste default/abstract
Improve doc
Test anon classes
Remove useless impl
Static modifier should not be present on toplevel classes
Simplify impl
Add visibility enum
Port some tests
Fix test ranges
Fix modifier ordering
Cleanup
Fix unnecessary modifier rule
Rename to use plural
Improve visibility doc
Simplify some things
Checkstyle
Remove some usages of typekind
Fix missing import
Remove irrelevant method
REmove some duplication
Replace AccessNode with ModifierOwner
Rename to AccessNode to reduce diff
Remove changes to rules
Add convenience methods
Make VariableDeclaratorId a ModifierOwner
Fix variable name decl
Make enum constant an implicit AccessNode
Fix compil
Checkstyle
Cleanup
Deprecate TypeKind
Cleanup
Remove TypeKind
Revert "Remove TypeKind"
This reverts commit 222c169c3401a01507726f339ae9f9b2b20dc69a.
Fix doc
Fix UnnecessaryModifierRule
Use special node instead of ModifierSet
Remove useless tests
Fix tests WIP
Work should be resumed when #2211 is merged into java-grammar
Fix some tests
Doc
2020-01-28 15:28:21 +01:00
Clément Fournier
9b3c27eb42
Merge branch '7.0.x' into java-grammar
2020-01-28 14:19:09 +01:00
Clément Fournier
152801bb39
Merge branch '7.0.x' into master-ant-script
2020-01-25 14:28:37 +01:00
Clément Fournier
faeeb38ffa
Merge branch 'master' into 7.0.x
2020-01-25 11:13:09 +01:00
Clément Fournier
d91e626a0b
Format idents in java grammar
2020-01-25 10:59:57 +01:00
Clément Fournier
64c8342cf4
Compact identifier token definitions
2020-01-25 09:54:56 +01:00
Clément Fournier
b09b58513b
Merge branch '7.0.x' into master-ant-script
2020-01-17 16:22:46 +01:00
Clément Fournier
26a5971af3
Replace deprecated usages
2020-01-17 15:46:54 +01:00
Clément Fournier
1eccf8ec7f
Merge branch 'java-grammar' into grammar-switches
2020-01-16 03:57:33 +01:00
Clément Fournier
86d7c3e009
Merge branch 'grammar-dimensions' into java-grammar
2020-01-16 03:45:23 +01:00
Clément Fournier
94ebcdec82
Don't forget annotation methods
2020-01-16 03:25:16 +01:00
Clément Fournier
a465d4b585
Merge branch 'java-grammar' into grammar-catch-formal
2020-01-16 02:43:32 +01:00
Clément Fournier
d3908cb2bb
Merge branch 'java-grammar' into grammar-dimensions
2020-01-16 02:42:45 +01:00
Clément Fournier
1072c49f46
Update grammar
2020-01-15 11:07:17 +01:00