Permalink
Browse files

Strings and Integers don't have children. Don't try walking them.

  • Loading branch information...
1 parent b608fde commit 1bb674a3a1f63a67fc207a879db7392d77b4a9c2 tcurtis committed Aug 9, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/PAST/Transformer.nqp
View
@@ -12,6 +12,11 @@ class PAST::Transformer is Tree::Transformer {
}
module Tree::Walker {
+ our multi sub walkChildren (PAST::Transformer $walker, Integer $str) { }
+ our multi sub replaceChildren (Integer $str, $newChildren) { }
+ our multi sub walkChildren (PAST::Transformer $walker, String $str) { }
+ our multi sub replaceChildren (String $str, $newChildren) { }
+
our multi sub walkChildren (PAST::Transformer $walker,
PAST::Block $block) {
my $results := pir::new__PP(Capture);

0 comments on commit 1bb674a

Please sign in to comment.