[svn:parrot] r48022 - branches/gsoc_past_optimization/runtime/parrot/library/Tree
tcurtis at svn.parrot.org
tcurtis at svn.parrot.org
Wed Jul 7 03:19:45 UTC 2010
Author: tcurtis
Date: Wed Jul 7 03:19:44 2010
New Revision: 48022
URL: https://trac.parrot.org/parrot/changeset/48022
Log:
Make Tree::Transformer stop being a Tree::Walker. Doesn't affect tests in the least. Will eventually move its multi into its own namespace.
Modified:
branches/gsoc_past_optimization/runtime/parrot/library/Tree/Transformer.nqp
Modified: branches/gsoc_past_optimization/runtime/parrot/library/Tree/Transformer.nqp
==============================================================================
--- branches/gsoc_past_optimization/runtime/parrot/library/Tree/Transformer.nqp Wed Jul 7 02:46:09 2010 (r48021)
+++ branches/gsoc_past_optimization/runtime/parrot/library/Tree/Transformer.nqp Wed Jul 7 03:19:44 2010 (r48022)
@@ -2,11 +2,15 @@
# Copyright (C) 2010, Parrot Foundation.
# $Id$
-INIT {
-pir::load_bytecode('Tree/Walker.pbc');
-}
+class Tree::Transformer {
+ method walk ($node) {
+ Tree::Walker::walk(self, $node);
+ }
-class Tree::Transformer is Tree::Walker { }
+ method walkChildren ($node) {
+ Tree::Walker::walkChildren(self, $node);
+ }
+}
module Tree::Walker {
our multi sub walk (Tree::Transformer $walker, Capture $node) {
More information about the parrot-commits
mailing list