Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
$!name can't be str if we put it here, it turns out. May be better to…
… move it into various other nodes where it can be, since it's just Regex with specialer needs.
  • Loading branch information
jnthn committed Jun 25, 2012
1 parent 32d6401 commit 4c86f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QAST/Node.nqp
Expand Up @@ -2,7 +2,7 @@ use NQPHLL;

class QAST::Node is NQPCapture {
has $!node;
has str $!name;
has $!name;
has str $!named;
has $!returns;
has int $!arity;
Expand All @@ -20,7 +20,7 @@ class QAST::Node is NQPCapture {
}

method node(*@value) { $!node := @value[0] if @value; $!node }
method name(*@value) { $!name := @value[0] if @value; $!name || "" }
method name(*@value) { $!name := @value[0] if @value; $!name }
method named(*@value) { $!named := @value[0] if @value; $!named || "" }
method returns(*@value) { $!returns := @value[0] if @value; $!returns }
method arity(*@value) { $!arity := @value[0] if @value; $!arity }
Expand Down

0 comments on commit 4c86f84

Please sign in to comment.