Skip to content

Instantly share code, notes, and snippets.

@donaldh
Created August 28, 2014 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donaldh/f5502df973ec2b41a9c2 to your computer and use it in GitHub Desktop.
Save donaldh/f5502df973ec2b41a9c2 to your computer and use it in GitHub Desktop.
Inserting this into Actions.nqp stops the serialization of NQPMatch objects. For why?
diff --git a/src/Perl6/Actions.nqp b/src/Perl6/Actions.nqp
index 29a19ea..c9a1648 100644
--- a/src/Perl6/Actions.nqp
+++ b/src/Perl6/Actions.nqp
@@ -2818,6 +2818,11 @@ class Perl6::Actions is HLL::Actions does STDActions {
$replacement[$i] := node_walker($node[$i]);
$i := $i + 2;
}
+ $i := 1;
+ while $i < $n {
+ $replacement[$i].name;
+ $i := $i + 2;
+ }
return clear_node($replacement);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment