Permalink
Browse files

make QAST dumper output a wee bit prettier

  • Loading branch information...
moritz committed Nov 17, 2012
1 parent bcb136c commit 9bbb138ea40a62b8b811b37773f8d23487d823f8
Showing with 6 additions and 1 deletion.
  1. +1 −0 src/QAST/BVal.nqp
  2. +5 −1 src/QAST/Op.nqp
View
@@ -5,4 +5,5 @@ class QAST::BVal is QAST::Node {
method evaluate_unquotes(@unquotes) {
self
}
+ method dump_extra_node_info() { ~$!value }
}
View
@@ -29,5 +29,9 @@ class QAST::Op is QAST::Node {
$result
}
- method dump_extra_node_info() { "$!op $!name"; }
+ method dump_extra_node_info() {
+ nqp::chars($!name)
+ ?? "$!op $!name"
+ !! $!op;
+ }
}

0 comments on commit 9bbb138

Please sign in to comment.