Skip to content

Commit ffe1cba

Browse files
committed
The childorder attribute only applies to QAST::Op, so move it there; another 8 bytes of many nodes.
1 parent fe87905 commit ffe1cba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/QAST/Node.nqp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class QAST::Node {
1717
has $!node;
1818
has $!returns;
1919
has int $!arity;
20-
has str $!childorder;
2120

2221
method new(*@children, *%options) {
2322
my $new := self.CREATE();
@@ -30,7 +29,6 @@ class QAST::Node {
3029

3130
method node(*@value) { $!node := @value[0] if @value; $!node }
3231
method returns(*@value) { $!returns := @value[0] if @value; $!returns }
33-
method childorder(*@value) { $!childorder := @value[0] if @value; $!childorder || "" }
3432
method arity(*@value) { $!arity := @value[0] if @value; $!arity }
3533

3634
method named(*@value) {

src/QAST/Op.nqp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
class QAST::Op is QAST::Node {
22
has str $!name;
33
has str $!op;
4+
has str $!childorder;
45

5-
method name(*@value) { $!name := @value[0] if @value; $!name || "" }
6-
method op(*@value) { $!op := @value[0] if @value; $!op }
6+
method name(*@value) { $!name := @value[0] if @value; $!name || "" }
7+
method op(*@value) { $!op := @value[0] if @value; $!op }
8+
method childorder(*@value) { $!childorder := @value[0] if @value; $!childorder || "" }
79
}

0 commit comments

Comments
 (0)