File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ role QAST::Children {
29
29
nqp :: push (@ onto , " \n " );
30
30
}
31
31
}
32
- CATCH { nqp :: push (@ onto , " Oops!!!" ) }
32
+ CATCH { nqp :: push (@ onto , " Oops!!! { nqp ::getmessage( $ _ ) } \n " ) }
33
33
}
34
34
35
35
method extra_children () {
@@ -43,7 +43,7 @@ role QAST::Children {
43
43
nqp :: push (@ onto , nqp ::x (' ' , $ indent ));
44
44
nqp :: push (@ onto , " [" ~ $ tag ~ " ]" );
45
45
nqp :: push (@ onto , " \n " );
46
- self . dump_node_list($ indent + 2, @ onto , $ nodes );
46
+ self . dump_node_list($ indent + 2, @ onto , nqp ::islist( $ nodes ) ?? $ nodes !! [ $ nodes ] );
47
47
}
48
48
$ extra := $ extra + nqp :: elems ($ nodes );
49
49
}
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ class QAST::CompUnit is QAST::Node does QAST::Children {
62
62
method extra_children () {
63
63
[
64
64
' pre_deserialize' , self . pre_deserialize,
65
- ' post_deserialize' , self . post_deserialize
65
+ ' post_deserialize' , self . post_deserialize,
66
+ ' main' , self . main ?? [self . main] !! [],
67
+ ' load' , self . load ?? [self . load] !! [],
66
68
];
67
69
}
68
70
}
You can’t perform that action at this time.
0 commit comments