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
Clément Fournier
0d6f03553a
Port java module
2020-01-11 08:13:31 +01:00
Clément Fournier
8a128a3bea
Replace token tracking function
2020-01-11 01:21:09 +01:00
Clément Fournier
ad7e9eb75d
Make token document store first token
2020-01-11 00:23:43 +01:00
Clément Fournier
efc3becc01
Checkout wrapper script, pmd-core, pmd-modelica
2020-01-10 22:57:47 +01:00
Clément Fournier
88aa7746f0
Merge branch '7.0.x' into java-grammar
2020-01-10 21:34:48 +01:00
Clément Fournier
99700d7526
Extract changes from #2166 to 7.0.x
...
* Make Java nodes text-available
* Introduce shared JavaccToken in pmd-core
* Use factory to produce char streams
Tests are still on java-grammar,
since they use the DSL & newer
AST structure.
This is to prepare for other changes
that concern all javacc languages and
should not be done on java-grammar
2020-01-10 21:15:15 +01:00
Clément Fournier
77664d9d7f
Improve switch grammar
2020-01-08 18:34:06 +01:00
Clément Fournier
1fefbd2c4a
Make FieldDeclaration not a TypeNode
2020-01-07 23:13:05 +01:00
Clément Fournier
1eab9448e7
Use ArrayDimensions for VariableDeclaratorId
...
* Remove `Dimensionable`, remove its methods from the former implementations (except from ASTArrayDimsAndInits, which is itself deprecated)
* The varargs ellipsis is now represented as an ArrayTypeDim.
* This affects FormalParameter and LambdaParameter
Closes #997 . All forms of type annotations are now supported.
2020-01-07 23:12:53 +01:00
Clément Fournier
17305f3781
Cleanup
2020-01-07 22:35:37 +01:00
Clément Fournier
ee1e9bf286
Fix final catch param
2020-01-07 21:19:49 +01:00
Clément Fournier
bba0367b10
Cleanup FormalParameter
2020-01-07 21:18:41 +01:00
Clément Fournier
db1344d5aa
Separate catch formal from method formal
2020-01-07 21:16:39 +01:00
Clément Fournier
4ce104a41b
Move CharStream into impl.javacc package
2020-01-06 16:41:25 +01:00
Clément Fournier
c1191253a6
Add tests for text access
2020-01-06 16:41:24 +01:00
Clément Fournier
f6d25ccf33
Cleanup token manager errors
2020-01-06 16:40:58 +01:00
Clément Fournier
4c07f606df
Rename token to JavaccToken in pmd-java
2020-01-06 16:40:58 +01:00
Clément Fournier
821c4c41d1
Rename JavaTokenFactory
2020-01-06 16:40:58 +01:00
Clément Fournier
0ce6234ba7
Simplify GTToken
2020-01-06 16:40:58 +01:00
Clément Fournier
1327d99307
Use token document instead
2020-01-06 16:40:57 +01:00
Clément Fournier
a70e70ad15
Refactor JavaCharStream to buffer whole file in memory, provide access to underlying text for all java nodes
2020-01-06 16:40:57 +01:00
Clément Fournier
5cc235dc94
Merge branch 'java-grammar' into grammar-new-statements
2019-12-15 01:45:08 +01:00
Clément Fournier
218fdc7264
Merge branch 'java-grammar' into grammar-prefix-postfix
2019-12-15 01:27:36 +01:00
Clément Fournier
b03e233647
Turn Statement into an interface
...
Remove BlockStatement
Introduce LocalClassDeclStatement
Introduce EmptyDeclaration (in preparation for PR about declarations)
Replace StatementExpression with ExpressionStatement
Make YieldStatement, ExplicitConstructorInvocation implement ASTStatement
Extract ForeachStatement from ForStatement
Rename
(ASTWhileStmt,
ASTDoStmt,
ASTForStmt,
ASTIfStmt,
ASTAssertStmt)#getGuardExpressionNode() -> getCondition()
Rename ASTCatchStatement -> ASTCatchClause
Rename ASTFinallyStatement -> ASTFinallyClause
Rename ASTTryStatement#getCatchStatements() -> getCatchClauses()
Make ASTYieldStatement not a TypeNode
Remove ASTTryStatement#hasFinally()
Add (ASTThrowStatement, ASTYieldStatement, ASTReturnStatement)#getExpression()
Add ASTTryStatement#getBody()
2019-12-15 01:21:49 +01:00
Clément Fournier
44106075f4
Merge branch 'grammar-isolate-version-checks' into java-grammar
2019-12-11 20:41:11 +01:00
Clément Fournier
ff174620f4
Merge branch '7.0.x' into java-grammar
2019-12-11 20:22:55 +01:00
Clément Fournier
76439a47f2
Use a single node for unary exprs
2019-12-09 15:12:09 +01:00
Clément Fournier
c7da6e94b2
Merge branch 'java-grammar' into grammar-prefix-postfix
2019-11-19 16:22:12 +01:00
Clément Fournier
585e123c09
Cleanup
2019-11-19 03:58:32 +01:00
Clément Fournier
1c6e57b5db
Fix tests
2019-11-19 03:43:46 +01:00
Clément Fournier
b9882c4268
Remove abstract java parser
2019-11-19 03:43:46 +01:00
Clément Fournier
ac2b77b472
Pull version checks out of the parser
2019-11-19 03:43:46 +01:00
Clément Fournier
b154c5e3ee
Remove irrelevant changes
2019-10-08 01:47:38 +02:00
Clément Fournier
6a6f20d899
Make getEnclosingClass always resolved
2019-10-08 01:47:38 +02:00
Clément Fournier
f5cc4f919a
Reduce visibility
2019-10-08 01:47:38 +02:00
Clément Fournier
8140ae9cbc
Extract suppressor interface
2019-10-07 00:01:31 +02:00
Clément Fournier
3c31b2df30
Merge branch 'java-grammar' into grammar-method-alignment
2019-10-05 14:56:19 +02:00