Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Slurpy can only go on a QAST::Var.

  • Loading branch information...
commit 6999d2b636936440609dbd241ca5b535bf46a222 1 parent 9eb078c
@jnthn jnthn authored
Showing with 4 additions and 4 deletions.
  1. +0 −2  src/QAST/Node.nqp
  2. +4 −2 src/QAST/Var.nqp
View
2  src/QAST/Node.nqp
@@ -5,7 +5,6 @@ class QAST::Node is NQPCapture {
has $!returns;
has int $!arity;
has int $!flat;
- has int $!slurpy;
has str $!childorder;
method new(*@children, *%options) {
@@ -24,7 +23,6 @@ class QAST::Node is NQPCapture {
method returns(*@value) { $!returns := @value[0] if @value; $!returns }
method arity(*@value) { $!arity := @value[0] if @value; $!arity }
method flat(*@value) { $!flat := @value[0] if @value; $!flat }
- method slurpy(*@value) { $!slurpy := @value[0] if @value; $!slurpy }
method childorder(*@value) { $!childorder := @value[0] if @value; $!childorder }
method pop() { nqp::pop(self.list) }
View
6 src/QAST/Var.nqp
@@ -1,7 +1,9 @@
class QAST::Var is QAST::Node {
has str $!scope;
has str $!decl;
+ has int $!slurpy;
- method scope(*@value) { $!scope := @value[0] if @value; $!scope }
- method decl(*@value) { $!decl := @value[0] if @value; $!decl }
+ method scope(*@value) { $!scope := @value[0] if @value; $!scope }
+ method decl(*@value) { $!decl := @value[0] if @value; $!decl }
+ method slurpy(*@value) { $!slurpy := @value[0] if @value; $!slurpy }
}
Please sign in to comment.
Something went wrong with that request. Please try again.