Skip to content

Commit dd40b44

Browse files
committed
Stub in node support for annotations, though not emitting them yet.
1 parent de2b269 commit dd40b44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/QAST/PIRT.nqp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ class PIRT::Sub is PIRT::Node {
234234
class PIRT::Ops is PIRT::Node {
235235
has @!children;
236236
has str $!result;
237+
has $!node;
237238
238239
method new(:$result = '') {
239240
my $obj := nqp::create(self);
@@ -263,6 +264,10 @@ class PIRT::Ops is PIRT::Node {
263264
}
264265
}
265266
267+
method node(*@value) {
268+
@value ?? ($!node := @value[0]) !! $!node
269+
}
270+
266271
method pir() {
267272
self.children_pir(@!children)
268273
}

0 commit comments

Comments
 (0)