Commit e7b9521c authored by Carlos Galindo's avatar Carlos Galindo
Browse files

Empty statements are now deleted from the slice.

Related to #54
parent abdb5999
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -198,4 +198,9 @@ public class SlicePruneVisitor extends ModifierVisitor<NodeHashSet<Node>> {
        super.visit(n, arg);
        return keep ? n : null;
    }

    @Override
    public Visitable visit(EmptyStmt n, NodeHashSet<Node> arg) {
        return arg.contains(n) ? n : null;
    }
}