Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tighten up use of natives in QAST dumping.
Also, things end up simpler. This is in anticipation of a MoarVM patch
that tightens up int/num native parameters.
  • Loading branch information
jnthn committed Sep 23, 2015
1 parent dc55987 commit e0fdaee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/QAST/Node.nqp
Expand Up @@ -101,10 +101,7 @@ class QAST::Node {
nqp::die(self.HOW.name(self) ~ " does not support evaluating unquotes");
}

method dump($indent?) {
unless nqp::defined($indent) {
$indent := 0;
}
method dump(int $indent = 0) {
my @chunks := [
nqp::x(' ', $indent), '- ', self.HOW.name(self),
];
Expand Down

0 comments on commit e0fdaee

Please sign in to comment.