3503 Commits

Author SHA1 Message Date
Clément Fournier
8938756997 Make AbstractAnyTypeDeclaration extend AbstractJavaTypeNode 2020-02-12 17:58:19 +01:00
Clément Fournier
143608a3db Cleanup ForeachStatement 2020-02-12 17:53:36 +01:00
Clément Fournier
d4ddb4ab0e Make ASTAnyTypeDeclaration::getDeclarations return a NodeStream 2020-02-12 17:52:45 +01:00
Clément Fournier
857a4507ae Checkstyle 2020-02-12 15:28:24 +01:00
Clément Fournier
db75acd6a9 Merge branch '7.0.x' into java-grammar 2020-02-12 14:50:11 +01:00
Clément Fournier
934691c106 Merge branch 'cleanup-language-version-handlers' into 7.0.x 2020-02-12 14:40:05 +01:00
Clément Fournier
31f50775bf Merge branch 'master' into 7.0.x 2020-02-12 14:39:29 +01:00
Clément Fournier
d61ec4c737 Deprecations for #2248 2020-02-12 14:39:01 +01:00
Clément Fournier
8f871b9d5c Fix visitor
X.super.visit is not virtual
2020-02-11 12:33:27 +01:00
Andreas Dangel
48cd952feb Merge branch 'pr-2269'
[java] Improve TypeHelper resilience
2020-02-10 19:17:24 +01:00
Andreas Dangel
0c9e813ac4 [java] AppendCharacterWithChar: remove unnecessary CDATA sections
The CDATA sections for the descriptions of the test cases
are not necessary.
2020-02-10 18:58:09 +01:00
kris-scheibe
adbe5eb553 make AppendCharacterWithCharRule ignore String literals, which are part of an expression, such as in StringBuffer.append("X".repeat(5)); 2020-02-09 07:23:13 +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
91872dfe60 Cleanup some more tests
Goal is to cleanup duplicate methods
of ParserTestCtx and promote single
way to write tests, explicitly using
the NodeParsingCtx.

The transformation is very mechanical
and uninterestng, hence why I'm not
opening a PR.
2020-02-07 19:52:46 +01:00
Clément Fournier
f0d417e8df Cleanup tests for ASTList PR 2020-02-07 18:50:36 +01:00
Clément Fournier
fca96691dd Cleanup compilation unit 2020-02-07 18:38:50 +01:00
Clément Fournier
b7cc31ac65 Abstract type param owners
This introduces a TypeParamOwnerNode interface,
for those nodes that declare a type parameter
list. This will be useful later on to implement
AST symbols.
2020-02-07 17:43:23 +01:00
Clément Fournier
131f2488c5 Cleanup symbol tests 2020-02-07 17:38:11 +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
2fe23f5e35 Merge branch '7.0.x' into cleanup-language-version-handlers 2020-02-07 14:33:23 +01:00
Clément Fournier
5ba1823005 Improve fallback strategy of TypeHelper 2020-02-06 16:56:20 +01:00
Clément Fournier
a1b6048d60 Fix tests 2020-01-28 16:06:13 +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
147a098141 Remove TypeKind 2020-01-28 15:36:48 +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
01ef998d17 Cleanup more left recursive nodes 2020-01-28 15:27:00 +01:00
Clément Fournier
f74ac3e000 Avoid LeftRecursiveNode on some types 2020-01-28 14:56:00 +01:00
Clément Fournier
77a3b3014b Merge branch 'java-grammar' into sym-table-impl 2020-01-28 14:28:47 +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
3c622ca188 Merge branch 'node-stream-traversal' into 7.0.x 2020-01-28 13:48:20 +01:00
Clément Fournier
c3ec3961d2 Merge branch 'master-ant-script' into 7.0.x 2020-01-28 13:36:47 +01:00
Clément Fournier
1fddb03d99 Merge branch 'master' into 7.0.x 2020-01-28 13:35:50 +01:00
Clément Fournier
2db32f8ea6 Simplify comparable behavior of processing stages
Instead of overriding compareTo we can just use an
external comparator
2020-01-27 10:40:00 +01:00
Clément Fournier
7cd64e4374 Merge branch '7.0.x' into cleanup-language-version-handlers 2020-01-27 10:28:48 +01:00
Andreas Dangel
cad1f40b02 Merge branch 'pr-2251'
[java] FP for InvalidLogMessageFormat when using slf4j-Markers

Fixes #2250
2020-01-26 19:57:20 +01:00
Clément Fournier
d726990e09 Make base parser adapter for jjtree 2020-01-25 16:36:42 +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
bd42f5edc0 Fix pmd 2020-01-25 10:50:27 +01:00
kris-scheibe
60cb037f80 FP for InvalidLogMessageFormat when using slf4j-Markers 2020-01-25 10:17:59 +01:00
Clément Fournier
64c8342cf4 Compact identifier token definitions 2020-01-25 09:54:56 +01:00
Clément Fournier
f7cec6f13c Cleanup tests 2020-01-25 09:35:43 +01:00
Clément Fournier
cceba2210f Merge branch 'java-grammar' into sym-table-impl 2020-01-24 23:53:13 +01:00
Clément Fournier
83b8827a26 Merge branch '7.0.x' into java-grammar 2020-01-24 23:49:31 +01:00
Clément Fournier
35da350007 Merge branch '7.0.x' into master-ant-script 2020-01-24 23:48:35 +01:00
Clément Fournier
ec1eb208eb Merge branch 'master' into 7.0.x 2020-01-24 23:48:22 +01:00
Clément Fournier
d90d5d267c Remove trailing whitespace everywhere 2020-01-24 23:40:06 +01:00