442 Commits

Author SHA1 Message Date
Clément Fournier
941bb10d1c Internalise PLSQL token manager 2020-03-17 14:48:37 +01:00
Clément Fournier
77112d2b9f Merge branch 'master' into deprecate-plsql-ast 2020-03-17 14:48:03 +01:00
Clément Fournier
e1069b4a33 Fix *ParserVisitor itf being deprecated
refs #2239
2020-03-17 14:42:29 +01:00
Andreas Dangel
3570796384 [plsql] Enhance test for XMLFOREST 2020-03-14 17:46:20 +01:00
Piotr Szymanski
ee9f82166a fixed grammar 2020-03-13 13:50:24 +01:00
Piotr Szymanski
a355f06b90 xmlforest with optional AS 2020-03-13 12:19:25 +01:00
Andreas Dangel
4c020bfbf7 [maven-release-plugin] prepare for next development iteration 2020-03-12 15:15:18 +01:00
Andreas Dangel
eb93aaeca7 [maven-release-plugin] prepare release pmd_releases/6.22.0 2020-03-12 15:15:09 +01:00
Andreas Dangel
76e1ff5da3 Merge branch 'pr-2336'
[core] Call SymbolFacade without classloader by default
2020-03-12 10:28:19 +01:00
Piotr Szymanski
d50ccd1767 extended test case 2020-03-06 12:50:00 +01:00
Piotr Szymanski
7d9322734e fixed parsing front slash 2020-03-06 12:29:49 +01:00
Andreas Dangel
6f78d54ba8 [plsql] Fix unit tests with duplicated symbol names 2020-03-06 11:11:16 +01:00
Andreas Dangel
4468db2428 [core] Call SymbolFacade without classloader by default
This allows languages, that don't need a classloader while creating
symbol table to just override the one method.
In the test, we call always the overloaded method with class loader
with made the symbol table processing not being run for tests
in plsql.

Fixes #2325
2020-03-06 10:59:02 +01:00
Andreas Dangel
38ce869b12 Merge branch 'pr-2332'
[plsql] Fixed Execute Immediate statement parsing
2020-03-06 10:24:26 +01:00
Andreas Dangel
7bf8493307 Merge branch 'pr-2331'
[plsql] Fix in Comment statement
2020-03-06 10:19:48 +01:00
Andreas Dangel
a682d36745 [plsql] Remove CursorBody and keep CursorSpecification 2020-03-06 10:18:27 +01:00
Andreas Dangel
d8afacd6a3 Formatting 2020-03-06 09:47:17 +01:00
Andreas Dangel
53a94b3844 [plsql] Deprecate AST constructors and setters
Also remove useless javadoc comments and fix license header
2020-03-06 09:15:25 +01:00
Piotr Szymanski
8ae59231a2 fixed and turned on Execute Immediate 2020-03-05 17:47:45 +01:00
Piotr Szymanski
72587706b3 small fix in Comment statement, removed not needed cursorSpecification, code formatting 2020-03-05 16:50:46 +01:00
Andreas Dangel
d759f8126b Merge branch 'pr-2327'
[plsql] Parsing of WHERE CURRENT OF added
2020-03-05 12:22:05 +01:00
Andreas Dangel
cc19671c5d Add missing override 2020-03-05 12:14:30 +01:00
Andreas Dangel
2c68e13598 [plsql] Refactor XMLROOT and XMLFOREST
* Undo changes for XMLFOREST - <AS> is not optional alone
* Remove token for keyword "VALUE"
2020-03-05 12:04:07 +01:00
Andreas Dangel
3329374214 [plsql] Refactor ExtractExpression
* Separate helper productions for datetime/xml
* Use StringLiteral for xpath and namespace
2020-03-05 12:02:56 +01:00
Piotr Szymanski
b83a4c3112 fixed test case 2020-03-05 11:22:47 +01:00
Piotr Szymanski
97043a75c5 parsing where_current_of added 2020-03-04 17:22:15 +01:00
Piotr Szymanski
69025d7522 extract(xml), xml_root, xml_forest fix 2020-03-04 15:10:24 +01:00
Clément Fournier
d61ec4c737 Deprecations for #2248 2020-02-12 14:39:01 +01:00
Clément Fournier
d90d5d267c Remove trailing whitespace everywhere 2020-01-24 23:40:06 +01:00
Clément Fournier
c27481f815 Trim trailing spaces in XML 2020-01-24 23:08:52 +01:00
Andreas Dangel
d994700617 [maven-release-plugin] prepare for next development iteration 2020-01-24 17:20:47 +01:00
Andreas Dangel
a28e9e22e5 [maven-release-plugin] prepare release pmd_releases/6.21.0 2020-01-24 17:20:38 +01:00
Andreas Dangel
5feca7fd93 Exclude generated AST*.java files from internalization 2020-01-24 16:19:24 +01:00
Clément Fournier
60e97d0ec8 Deprecate javacc generated code 2020-01-22 17:19:29 +01:00
Clément Fournier
27d7a6c02c Accomodate children iterable for specialization 2020-01-19 05:57:39 +01:00
Andreas Dangel
4450d826f7 Merge branch 'pr-2225'
[core] CPD: report endLine / column informations for found duplications
2020-01-17 14:59:02 +01:00
Andreas Dangel
817c3d1127 CPD: Remove deprecations in Mark / TokenEntry
* Provide these values for more languages
2020-01-17 14:47:23 +01:00
Clément Fournier
d9ad819dab Replace usages of node methods everywhere 2020-01-17 11:57:19 +01:00
Andreas Dangel
f53993427c Merge branch 'pr-2172'
[core] Deprecate jjtree methods from the Node interface
2020-01-17 08:18:50 +01:00
Clément Fournier
820edada4f Add 'children' iterable method to Node interface 2020-01-12 18:18:38 +01:00
Clément Fournier
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
Andreas Dangel
398b683565 Merge branch 'pr-2177'
[lang-test] Factorize parsing logic for tests
2020-01-10 14:07:29 +01:00
Andreas Dangel
c53d9508e9 Small changes from code review
* rename BaseParserHelper
* Not using org.jetbrains.annotations.NotNull
2020-01-10 12:18:43 +01:00
Andreas Dangel
4269fd1b73 Refactor tests for javascript, jsp, plsql, scala, visualforce, xml
using BaseParsingHelper

Revert "REVERT ME Remove some diff"

This reverts commit f72810088d2c7f3c29fbde185b25cfc72fc1fbcc.
2020-01-10 12:12:34 +01:00
Clément Fournier
98b57f75ab Merge branch 'master' into deprecate-jjtree-methods 2020-01-06 18:50:43 +01:00
Clément Fournier
af537034a9 Use getters for tokens in javacc grammars 2020-01-06 15:01:18 +01:00
Clément Fournier
e335e069f8 Merge branch 'master' into deprecate-jjtree-methods 2020-01-05 23:17:25 +01:00
Clément Fournier
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
Andreas Dangel
1d82918efa Merge branch 'pr-2184'
[plsql] Fix DDLCommands parsing
2020-01-05 19:20:29 +01:00
Andreas Dangel
dcb6239725 Fix build under windows 2019-12-24 14:13:27 +01:00