28 Commits

Author SHA1 Message Date
Clément Fournier
4552c04a74 Simplify 2020-01-13 01:49:33 +01:00
Clément Fournier
83e86c20c5 Test modelica text 2020-01-13 01:15:04 +01:00
Clément Fournier
47fcfb6f3c Make end column exclusive 2020-01-13 01:05:54 +01:00
Clément Fournier
2d280d0fb0 Make constants file 2020-01-11 04:47:40 +01:00
Clément Fournier
8a128a3bea Replace token tracking function 2020-01-11 01:21:09 +01:00
Clément Fournier
f715e6af72 Use maven properties from within the build.xml 2020-01-10 23:27:07 +01:00
Clément Fournier
efc3becc01 Checkout wrapper script, pmd-core, pmd-modelica 2020-01-10 22:57:47 +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
Andreas Dangel
ea86a23b73 Merge branch 'master' into pmd/7.0.x 2020-01-10 14:41:27 +01:00
Andreas Dangel
cf89b742b0 Merge branch 'pr-2177'
[lang-test] Factorize parsing logic for tests
2020-01-10 12:29:38 +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
Clément Fournier
5f37276cf5 Merge branch 'master' into 7.0.x 2020-01-06 22:14:05 +01:00
Andreas Dangel
63221805a3 Merge branch 'pr-2195'
[modelica] Normalize invalid node ranges
2020-01-06 18:42:14 +01:00
Anatoly Trosinenko
9c7b0d9385 [modelica] Fix Javadoc tags 2020-01-06 17:46:58 +03:00
Clément Fournier
394de28a0d Set image 2020-01-05 19:32:09 +01:00
Clément Fournier
6f61522971 Test 2020-01-05 19:22:17 +01:00
Clément Fournier
e9dbe0233f Use implicit zero-length token in modelica 2020-01-05 19:06:32 +01:00
Anatoly Trosinenko
4f3db86a70 [modelica] Normalize invalid node ranges
Some files were parsed into ASTs with nodes having negative ranges.
For example:

package TestPackage
  package EmptyPackage
  end EmptyPackage;
end TestPackage;

has subtree:

  SimpleLongClassSpecifier "EmptyPackage"
    SimpleName "EmptyPackage"
    Composition
      ElementList <-- start = 3:3, end = 2:22
    SimpleName "EmptyPackage"
2020-01-03 14:29:38 +03:00
Clément Fournier
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
Clément Fournier
fc5426ab53 Update modelica for 7.0.0 2019-12-19 15:36:12 +01:00
Clément Fournier
ffcacd6edd Merge branch 'master' into 7.0.x 2019-12-19 15:25:47 +01:00
Clément Fournier
320339240f [modelica] Small cleanups
* Move AbstractModelicaRule into the `rule` package
* Make the visitor interface mention only published types (ie not
AbstractModelicaNode)
* Other cleanups(eg make interfaces extend ModelicaNode)
2019-12-19 15:24:53 +01:00
Clément Fournier
b302b4d0cf Update modelica pom 2019-12-19 15:01:26 +01:00
Anatoly Trosinenko
6224bd3d77 [modelica] Follow-up fixes for Modelica language module 2019-12-17 19:43:32 +03:00
Clément Fournier
baeda3cfe5 Remove the rest
See parent commit
2019-12-17 17:38:17 +01:00
Clément Fournier
305e5ef082 [modelica] Remove source-type attributes in tests xml
This is only needed to select a specific
language version. Tests are failing because
the newer schema has not yet been published.
2019-12-17 17:36:24 +01:00
Andreas Dangel
7bb987fcf4 [modelica] Add rule test for ClassStartNameEqualsEndName 2019-12-17 12:22:54 +01:00
Anatoly Trosinenko
20bf4ad759 [modelica] Initial implementation of Modelica support for PMD 2019-12-16 19:26:32 +03:00