Fix some root nodes not being RootNode

This commit is contained in:
Clément Fournier
2019-04-27 15:18:44 +02:00
parent 02347b7d9f
commit 7d6a6dd146
3 changed files with 28 additions and 1 deletions

View File

@ -6,7 +6,9 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.AstRoot;
public class ASTAstRoot extends AbstractEcmascriptNode<AstRoot> {
import net.sourceforge.pmd.lang.ast.RootNode;
public class ASTAstRoot extends AbstractEcmascriptNode<AstRoot> implements RootNode {
public ASTAstRoot(AstRoot astRoot) {
super(astRoot);
}

View File

@ -68,6 +68,7 @@ public class]]></replacevalue>
<delete file="${target}/net/sourceforge/pmd/lang/vm/ast/ASTDivNode.java"/>
<delete file="${target}/net/sourceforge/pmd/lang/vm/ast/ASTEscape.java"/>
<delete file="${target}/net/sourceforge/pmd/lang/vm/ast/ASTMethod.java"/>
<delete file="${target}/net/sourceforge/pmd/lang/vm/ast/ASTprocess.java"/>
<delete file="${target}/net/sourceforge/pmd/lang/vm/ast/ASTModNode.java"/>
<delete file="${target}/net/sourceforge/pmd/lang/vm/ast/ASTMulNode.java"/>
<delete file="${target}/net/sourceforge/pmd/lang/vm/ast/ASTReference.java"/>

View File

@ -0,0 +1,24 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vm.ast;
import net.sourceforge.pmd.lang.ast.RootNode;
public final class ASTprocess extends AbstractVmNode implements RootNode {
public ASTprocess(int id) {
super(id);
}
public ASTprocess(VmParser p, int id) {
super(p, id);
}
@Override
public Object jjtAccept(VmParserVisitor visitor, Object data) {
return visitor.visit(this, data);
}
}