Skip to content

Commit

Permalink
Fix dumping block with null_s cuids
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Jan 20, 2018
1 parent 734b9e5 commit a45bfea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/QAST/Block.nqp
Expand Up @@ -93,7 +93,9 @@ class QAST::Block is QAST::Node does QAST::Children {
}

method dump_extra_node_info() {
":cuid($!cuid)"
~ (nqp::chars(self.blocktype) ?? " :blocktype($!blocktype)" !! "");
my @extra;
@extra.push(":cuid($!cuid)") unless nqp::isnull_s($!cuid);
@extra.push(":blocktype($!blocktype)") unless nqp::chars(self.blocktype);
nqp::join(' ', @extra);
}
}

0 comments on commit a45bfea

Please sign in to comment.