[scala] Rename ScalaParserVisitor(Adapter) -> ScalaVisitor(Base)
This commit is contained in:
@ -249,6 +249,11 @@ The following previously deprecated classes have been removed:
|
||||
need to be adjusted.
|
||||
* The node `ASTClassOrInterfaceBody` has been renamed to {% jdoc java::lang.ast.ASTClassBody %}. XPath rules
|
||||
need to be adjusted.
|
||||
* pmd-scala
|
||||
* The interface `ScalaParserVisitor` has been renamed to {%jdoc scala::lang.scala.ast.ScalaVisitor %} in order
|
||||
to align the naming scheme for the different language modules.
|
||||
* The class `ScalaParserVisitorAdapter` has been renamed to {%jdoc scala::lang.scala.ast.ScalaVisitorBase %} in order
|
||||
to align the naming scheme for the different language modules.
|
||||
|
||||
#### External Contributions
|
||||
* [#4640](https://github.com/pmd/pmd/pull/4640): \[cli] Launch script fails if run via "bash pmd" - [Shai Bennathan](https://github.com/shai-bennathan) (@shai-bennathan)
|
||||
|
@ -16,7 +16,7 @@ public final class ASTCase extends AbstractScalaNode<Case> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ public final class ASTCtorPrimary extends AbstractScalaNode<Ctor.Primary> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTCtorSecondary extends AbstractScalaNode<Ctor.Secondary> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDeclDef extends AbstractScalaNode<Decl.Def> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDeclType extends AbstractScalaNode<Decl.Type> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDeclVal extends AbstractScalaNode<Decl.Val> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDeclVar extends AbstractScalaNode<Decl.Var> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDefnClass extends AbstractScalaNode<Defn.Class> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDefnDef extends AbstractScalaNode<Defn.Def> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDefnMacro extends AbstractScalaNode<Defn.Macro> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDefnObject extends AbstractScalaNode<Defn.Object> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDefnTrait extends AbstractScalaNode<Defn.Trait> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDefnType extends AbstractScalaNode<Defn.Type> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDefnVal extends AbstractScalaNode<Defn.Val> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTDefnVar extends AbstractScalaNode<Defn.Var> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTEnumeratorGenerator extends AbstractScalaNode<Enumerator.G
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTEnumeratorGuard extends AbstractScalaNode<Enumerator.Guard
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTEnumeratorVal extends AbstractScalaNode<Enumerator.Val> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTImport extends AbstractScalaNode<Import> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTImporteeName extends AbstractScalaNode<Importee.Name> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTImporteeRename extends AbstractScalaNode<Importee.Rename>
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTImporteeUnimport extends AbstractScalaNode<Importee.Unimpo
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTImporteeWildcard extends AbstractScalaNode<Importee.Wildca
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTImporter extends AbstractScalaNode<Importer> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTInit extends AbstractScalaNode<Init> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public final class ASTLitBoolean extends AbstractScalaNode<Lit.Boolean> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ public final class ASTLitByte extends AbstractScalaNode<Lit.Byte> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ public final class ASTLitChar extends AbstractScalaNode<Lit.Char> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ public final class ASTLitDouble extends AbstractScalaNode<Lit.Double> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <P, R> R acceptVisitor(ScalaParserVisitor<? super P, ? extends R> visitor, P data) {
|
||||
protected <P, R> R acceptVisitor(ScalaVisitor<? super P, ? extends R> visitor, P data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user