Fix some root nodes not being RootNode
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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"/>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user