A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/998 below:

[java] AST inconsistencies around FormalParameter · Issue #998 · pmd/pmd · GitHub

The following are breaking API changes, that I'd like to see done sometime

FormalParameter shouldn't be an access node

FormalParameter currently implements AccessNode, even though this is only because a parameter can be final...

The problem is also real for LocalVariableDeclaration

CatchStatement shouldn't use FormalParameter as a child

Because of that, FormalParameter's grammar implements the multicatch syntax, which doesn't really make sense and makes it difficult to enrich the API of the node in a sensible way.

We should probably follow the JLS more closely for Catch formal parameters.

Resource shouldn't extend FormalParameter

It just doesn't make sense at all. ASTResource inherits isVarargs, isMultiCatch, all methods of AccessNode, etc...


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4