Skip to content

Commit

Permalink
Fix deletion of nodes in .transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurtis committed Aug 4, 2010
1 parent f7cd6ed commit e3dd6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tree/Pattern/Transformer.nqp
Expand Up @@ -119,7 +119,7 @@ module Tree::Walker {
$shouldDescend := !$walker.descend_until.ACCEPTS($node); $shouldDescend := !$walker.descend_until.ACCEPTS($node);
} }


if ($shouldDescend) { if ($shouldDescend && !pir::isnull__IP($result)) {
$walker.depth($walker.depth + 1); $walker.depth($walker.depth + 1);
my $newChildren := walkChildren($walker, $result); my $newChildren := walkChildren($walker, $result);
replaceChildren($result, $newChildren); replaceChildren($result, $newChildren);
Expand Down

0 comments on commit e3dd6b2

Please sign in to comment.