Skip to content

Commit 6b5c556

Browse files
committed
Fill out QAST::Var and QAST::Block a little.
1 parent fdba789 commit 6b5c556

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/QAST/Block.nqp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
class QAST::Block is QAST::Node {
22
has str $!blocktype;
3+
has int $!lexical;
4+
has str $!cuid;
35

46
method blocktype(*@value) { $!blocktype := @value[0] if @value; $!blocktype }
7+
method lexical(*@value) { $!lexical := @value[0] if @value; $!lexical }
8+
method cuid(*@value) { $!cuid := @value[0] if @value; $!cuid }
59
}

src/QAST/Var.nqp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
class QAST::Var is QAST::Node {
2-
has $!scope;
2+
has str $!scope;
3+
has str $!decl;
4+
5+
method scope(*@value) { $!scope := @value[0] if @value; $!scope }
6+
method decl(*@value) { $!decl := @value[0] if @value; $!decl }
37
}

0 commit comments

Comments
 (0)