Skip to content

Commit

Permalink
Dump annotations in predictable order
Browse files Browse the repository at this point in the history
Should help with finding actual differences in QAST dumps
  • Loading branch information
niner committed May 6, 2018
1 parent 7a980a6 commit 707eb77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/QAST/Node.nqp
Expand Up @@ -158,9 +158,8 @@ class QAST::Node {
my @anns;
nqp::push(@anns, self.dump_flags);
if nqp::ishash(%!annotations) {
for %!annotations {
my $k := $_.key;
my $v := $_.value;
for sorted_keys(%!annotations) -> $k {
my $v := %!annotations{$_};
try {
if nqp::isconcrete($v) {
if $k eq 'IN_DECL' || $k eq 'BY' || $k eq 'statement_id' {
Expand Down

0 comments on commit 707eb77

Please sign in to comment.