Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[QAST dumper] include a bit more info
  • Loading branch information
moritz committed Feb 16, 2013
1 parent d579a30 commit 97fd401
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/QAST/Stmt.nqp
Expand Up @@ -24,4 +24,7 @@ class QAST::Stmt is QAST::Node {
}
$result
}
method dump_extra_node_info() {
nqp::defined($!resultchild) ?? ":resultchild($!resultchild))" !! ''
}
}
4 changes: 4 additions & 0 deletions src/QAST/Stmts.nqp
Expand Up @@ -24,4 +24,8 @@ class QAST::Stmts is QAST::Node {
}
$result
}

method dump_extra_node_info() {
nqp::defined($!resultchild) ?? ":resultchild($!resultchild))" !! ''
}
}
4 changes: 3 additions & 1 deletion src/QAST/Var.nqp
Expand Up @@ -20,6 +20,8 @@ class QAST::Var is QAST::Node {
}

method dump_extra_node_info() {
"$!scope $!name";
$!decl
?? "$!scope $!name :decl"
!! "$!scope $!name";
}
}

0 comments on commit 97fd401

Please sign in to comment.