Commit Graph

416 Commits

Author SHA1 Message Date
97043a75c5 parsing where_current_of added 2020-03-04 17:22:15 +01:00
d61ec4c737 Deprecations for #2248 2020-02-12 14:39:01 +01:00
d90d5d267c Remove trailing whitespace everywhere 2020-01-24 23:40:06 +01:00
c27481f815 Trim trailing spaces in XML 2020-01-24 23:08:52 +01:00
d994700617 [maven-release-plugin] prepare for next development iteration 2020-01-24 17:20:47 +01:00
a28e9e22e5 [maven-release-plugin] prepare release pmd_releases/6.21.0 2020-01-24 17:20:38 +01:00
5feca7fd93 Exclude generated AST*.java files from internalization 2020-01-24 16:19:24 +01:00
60e97d0ec8 Deprecate javacc generated code 2020-01-22 17:19:29 +01:00
27d7a6c02c Accomodate children iterable for specialization 2020-01-19 05:57:39 +01:00
4450d826f7 Merge branch 'pr-2225'
[core] CPD: report endLine / column informations for found duplications
2020-01-17 14:59:02 +01:00
817c3d1127 CPD: Remove deprecations in Mark / TokenEntry
* Provide these values for more languages
2020-01-17 14:47:23 +01:00
d9ad819dab Replace usages of node methods everywhere 2020-01-17 11:57:19 +01:00
f53993427c Merge branch 'pr-2172'
[core] Deprecate jjtree methods from the Node interface
2020-01-17 08:18:50 +01:00
820edada4f Add 'children' iterable method to Node interface 2020-01-12 18:18:38 +01:00
271efff289 [plsql] Use token::getImage instead of token::toString in grammar
If we change token.toString to be more descriptive
(eg display kind), the parser breaks. This prepares
changes for 7.0
2020-01-10 18:13:17 +01:00
398b683565 Merge branch 'pr-2177'
[lang-test] Factorize parsing logic for tests
2020-01-10 14:07:29 +01:00
c53d9508e9 Small changes from code review
* rename BaseParserHelper
* Not using org.jetbrains.annotations.NotNull
2020-01-10 12:18:43 +01:00
4269fd1b73 Refactor tests for javascript, jsp, plsql, scala, visualforce, xml
using BaseParsingHelper

Revert "REVERT ME Remove some diff"

This reverts commit f72810088d.
2020-01-10 12:12:34 +01:00
98b57f75ab Merge branch 'master' into deprecate-jjtree-methods 2020-01-06 18:50:43 +01:00
af537034a9 Use getters for tokens in javacc grammars 2020-01-06 15:01:18 +01:00
e335e069f8 Merge branch 'master' into deprecate-jjtree-methods 2020-01-05 23:17:25 +01:00
0ff87229ff Remove TokenBasedNode
I don't think we should expose tokens as an API
yet. They're an implementation detail, not used
much, and the AST should be able to reflect all
the information that can be found in the tokens.

The methods of AbstractNode can be pulled down
to AbstractJjtreeNode and made protected.
2020-01-05 23:13:04 +01:00
1d82918efa Merge branch 'pr-2184'
[plsql] Fix DDLCommands parsing
2020-01-05 19:20:29 +01:00
dcb6239725 Fix build under windows 2019-12-24 14:13:27 +01:00
1c7e8fb2ab Fix build under windows 2019-12-24 11:47:41 +01:00
e345e811be [plsql] Use ReadPastNextOccurrence rather than SkipPastNextToken
The token SQLPLUS_TERMINATOR is useless, since the token ";" is
matched before. So, we always skipped till the end of the file.

Improved the image of the skipped nodes, so that it can be of some
use.

Note: This will fix the problem #2009, but it doesn't parse
DDL Commands fully. It just skips past the next ";".
2019-12-24 11:37:41 +01:00
e230027f9a [plsql] Support COMMENT statement
Ref #2009
2019-12-24 11:17:59 +01:00
ad02dcac5e [plsql] Add test case for multiple ddl statements
Refs #2009
2019-12-23 18:40:29 +01:00
04aa48e3f1 [plsql] Add additional test case for multi line string literals 2019-12-23 18:30:26 +01:00
4599b6989a [plsql] Fix StringLiteral token
StringLiterals can use a custom quote delimiter that
marks the end of a string literal. This quote delimiter
is only effective together with the quote character.
A single quote character, that is not preceded by the
delimiter, should be allowed.

Additionally, the ASTStringLiteral node gives
now access to the plain string value of the
literal without the quoting.

Fixes #2008
2019-12-23 18:24:14 +01:00
f72810088d REVERT ME Remove some diff 2019-12-20 18:32:47 +01:00
8afe5ae7a8 Abstract away parser utils
Convert a few pieces of code

Share with modelica

Remove yet another dup

Fix tests

Doc

Share with plsql

Fix tests

Fix build

Cleanup

Minimize diff

Share with JSP module

Share with JS module

Share with XML module

Share with VisualForce module

Share with Scala module

Fix last tests
2019-12-20 18:30:17 +01:00
627e258458 Revert 2019-12-17 17:49:01 +01:00
86b274c681 Make generic visitor superclass
Use raw supertype to avoid conflicts
2019-12-17 17:39:13 +01:00
2f37e1c256 Deprecate jjt* methods 2019-12-17 17:39:13 +01:00
1aabc53fa2 Deprecate childrenAccept in all modules 2019-12-17 17:39:13 +01:00
98df6bda1c Add TokenBasedNode, AbstractJjtreeNode 2019-12-17 17:39:13 +01:00
eb6ceef085 Add comments and update release notes 2019-12-05 15:23:07 +01:00
bb7478cd0a Deprecate RuleViolationFactory impls
Internal APIs
2019-12-05 15:18:35 +01:00
00392cefc2 [maven-release-plugin] prepare for next development iteration 2019-11-29 19:46:14 +01:00
78da370fb8 [maven-release-plugin] prepare release pmd_releases/6.20.0 2019-11-29 19:46:05 +01:00
deec9c44b2 [maven-release-plugin] prepare for next development iteration 2019-10-31 18:36:51 +01:00
2881b6f585 [maven-release-plugin] prepare release pmd_releases/6.19.0 2019-10-31 18:36:42 +01:00
e536ca1947 [maven-release-plugin] prepare for next development iteration 2019-09-15 10:14:14 +02:00
3f42cca200 [maven-release-plugin] prepare release pmd_releases/6.18.0 2019-09-15 10:14:05 +02:00
a24e85488e Merge branch 'pr-1986' 2019-09-08 15:39:49 +02:00
26600e68c7 Merge branch 'pr-1977' 2019-09-08 15:24:35 +02:00
20d34103ce [plsql] Add basic support for with clause 2019-09-08 15:20:00 +02:00
dea41f1b6f Merge branch 'pr-1976' 2019-09-08 12:03:54 +02:00
854cd4c700 Merge branch 'pr-1975' 2019-09-08 12:00:19 +02:00