Skip to content

Commit

Permalink
Resolve divergence in QAST nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 13, 2013
1 parent ada971f commit ad1a19f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion nqp-src/QASTNodes.nqp
Expand Up @@ -326,7 +326,9 @@ class QAST::Var is QAST::Node {
}

method dump_extra_node_info() {
"$!scope $!name";
$!decl
?? "$!scope $!name :decl"
!! "$!scope $!name";
}
}
# From src\QAST\VarWithFallback.nqp
Expand Down Expand Up @@ -432,6 +434,10 @@ class QAST::Stmts is QAST::Node {
}
$result
}

method dump_extra_node_info() {
nqp::defined($!resultchild) ?? ":resultchild($!resultchild))" !! ''
}
}
# From src\QAST\Stmt.nqp

Expand Down Expand Up @@ -461,6 +467,10 @@ class QAST::Stmt is QAST::Node {
}
$result
}

method dump_extra_node_info() {
nqp::defined($!resultchild) ?? ":resultchild($!resultchild))" !! ''
}
}
# From src\QAST\Block.nqp

Expand Down

0 comments on commit ad1a19f

Please sign in to comment.