Browse files

Fix deletion of nodes in .transform.

  • Loading branch information...
1 parent f7cd6ed commit e3dd6b24ff41593bd46a6c29104d7972768c6a1b tcurtis committed Aug 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Tree/Pattern/Transformer.nqp
View
2 src/Tree/Pattern/Transformer.nqp
@@ -119,7 +119,7 @@ module Tree::Walker {
$shouldDescend := !$walker.descend_until.ACCEPTS($node);
}
- if ($shouldDescend) {
+ if ($shouldDescend && !pir::isnull__IP($result)) {
$walker.depth($walker.depth + 1);
my $newChildren := walkChildren($walker, $result);
replaceChildren($result, $newChildren);

0 comments on commit e3dd6b2

Please sign in to comment.