We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed362a9 commit a2fe8ebCopy full SHA for a2fe8eb
src/QAST/Node.nqp
@@ -109,6 +109,25 @@ class QAST::Node {
109
if nqp::chars($extra) {
110
nqp::push(@chunks, "($extra)");
111
}
112
+ if nqp::ishash(%!annotations) {
113
+ for %!annotations {
114
+ my $k := $_.key;
115
+ nqp::push(@chunks, ' :' ~ $k);
116
+ my $v := $_.value;
117
+ try {
118
+ if nqp::isconcrete($v) {
119
+ if $k eq 'context' {
120
+ nqp::push(@chunks, '<' ~ $v ~ '>');
121
+ }
122
+ elsif $k eq 'sink_ok' || $k eq 'WANTED' || $k eq 'final' {
123
124
+ else { # dunno how to introspect
125
+ nqp::push(@chunks, '<?>');
126
127
128
129
130
131
if (self.node) {
132
nqp::push(@chunks, ' ');
133
my $escaped_node := nqp::escape(self.node);
0 commit comments