[svn:parrot] r47525 - trunk/compilers/opsc/src/Ops

cotto at svn.parrot.org cotto at svn.parrot.org
Thu Jun 10 08:46:27 UTC 2010


Author: cotto
Date: Thu Jun 10 08:46:27 2010
New Revision: 47525
URL: https://trac.parrot.org/parrot/changeset/47525

Log:
[opsc] simplify some multi variants now that they're separate

Modified:
   trunk/compilers/opsc/src/Ops/Op.pm

Modified: trunk/compilers/opsc/src/Ops/Op.pm
==============================================================================
--- trunk/compilers/opsc/src/Ops/Op.pm	Thu Jun 10 08:12:39 2010	(r47524)
+++ trunk/compilers/opsc/src/Ops/Op.pm	Thu Jun 10 08:46:27 2010	(r47525)
@@ -287,7 +287,7 @@
 
 our multi method process_body_chunk($trans, PAST::Var $chunk) {
     my $n := +$chunk.name;
-    return $trans.access_arg( self.arg_type($n - 1), $n);
+    $trans.access_arg( self.arg_type($n - 1), $n);
 }
 
 our multi method process_body_chunk($trans, PAST::Op $chunk) {
@@ -330,8 +330,7 @@
     for @($chunk) {
         @children.push(self.process_body_chunk($trans, $_));
     }
-    my $children := join('', |@children);
-    return $children;
+    join('', |@children);
 }
 
 =begin


More information about the parrot-commits mailing list