Skip to content

[core] Wire processing stages into SourceCodeProcessor#1796

Merged
oowekyala merged 25 commits into
pmd:pmd/7.0.xfrom
oowekyala:wire-processing-stages
Oct 5, 2019
Merged

[core] Wire processing stages into SourceCodeProcessor#1796
oowekyala merged 25 commits into
pmd:pmd/7.0.xfrom
oowekyala:wire-processing-stages

Conversation

@oowekyala

Copy link
Copy Markdown
Member

Follow up on #1426 (including PR comments from the later reviews)

This is a temporary solution until we change RuleSet. You can see when running with the benchmark that the stages are properly executed for any language (though the benchmark reporter doesn't preserve the order of execution).

With this, plus #1759, we can plug-in a naive name disambiguation stage, which unlocks progress on the updating of type resolution (and on a long-term solution for stages). This is what I've tried to schematize on the wiki

@oowekyala oowekyala added the in:ast About the AST structure or API, the parsing step label Apr 26, 2019
@oowekyala oowekyala added this to the 7.0.0 milestone Apr 26, 2019
@oowekyala oowekyala added the in:pmd-internals Affects PMD's internals label Apr 26, 2019
@oowekyala oowekyala force-pushed the wire-processing-stages branch from b92327c to 332a52b Compare April 27, 2019 18:07
@adangel

adangel commented Apr 29, 2019

Copy link
Copy Markdown
Member

By the way, I figured out why travis doesn't build, even though the PR is build on the merge commit with pmd/7.0.x : the important change is in .travis.yml, but the git checkout/merge happens only after travis is already running, so it doesn't change the receipt. Since there are no commit comments on this PR on github yet, I'd suggest to rebase this PR and force push:

git fetch origin
git checkout wire-processing-stages
git rebase origin/pmd/7.0.x
git push -f wire-processing-stages

You'll get rid of the two "Merge branch '7.0.x' into wire-processing-stages" commits then. If you needed to resolve conflicts back then, you probably need to resolve them again during rebase.

@oowekyala oowekyala force-pushed the wire-processing-stages branch from 332a52b to 7d6a6dd Compare April 29, 2019 23:01
@ghost

ghost commented Apr 29, 2019

Copy link
Copy Markdown
1 Message
📖 No java rules are changed!

Generated by 🚫 Danger

@djydewang

Copy link
Copy Markdown
Member

Running pmdtester failed, this message is mainly used to remind the maintainers of PMD.

https://travis-ci.org/pmd/pmd/jobs/526201635#L6720, it seems that the server has no local pmd/7.0.x branch. I'll fix the issue in another PR.

Antlr root nodes need to implement RootNode.

Also, I didn't like the fact that the swift
module didn't use the conventional package
structure (lang.swift.ast) but was rolling
its own convention (lang.swift.antlr4).

I moved base classes for the antlr implementations
into nspmd.lang.ast.impl.antlr4. The fact that a
module is implemented with antlr is an implementation
detail, and it doesn't deserve its own toplevel package
in nspmd.lang.
@oowekyala oowekyala merged commit ae378fd into pmd:pmd/7.0.x Oct 5, 2019
@oowekyala oowekyala deleted the wire-processing-stages branch October 5, 2019 14:08
@oowekyala oowekyala mentioned this pull request Oct 6, 2019
2 tasks
@adangel adangel removed the in:ast About the AST structure or API, the parsing step label Jan 12, 2023
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:pmd-internals Affects PMD's internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants