package polyglot.visit;

import polyglot.ast.Node;
import polyglot.visit.HaltingVisitor;
import polyglot.visit.NodeVisitor;

/**
 * Returns a deep copy of the AST.
 */
public class DeepCopy extends HaltingVisitor {
    public DeepCopy() {
        super();
    }

    @Override
	public Node leave(Node old, Node n, NodeVisitor v) {
        return (Node)n.copy();
    }    
}

@@ -260,22 +260,8 @@
  %7D%0A%0A
-    @Override%0A
 %09pub

Make 1.4 compatible.