Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
[nqp]: Eliminate $*METHODTYPE from grammar and actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jun 3, 2010
1 parent 7006d42 commit 9612a72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/NQP/Actions.pm
Expand Up @@ -463,6 +463,7 @@ method method_def($/) {
my $name := ~$<deflongname>[0].ast;
$past.name($name);
}
if $*MULTINESS eq 'multi' { $past.multi().unshift('_'); }
make $past;
}

Expand All @@ -475,7 +476,6 @@ method signature($/) {
# Generate :multi pragma
if $*MULTINESS eq "multi" {
my @params;
@params.push('_') if $*METHODTYPE eq "Method";
for $BLOCKINIT.list {
@params.push($_.multitype // '_');
}
Expand Down
2 changes: 0 additions & 2 deletions src/NQP/Grammar.pm
Expand Up @@ -9,7 +9,6 @@ method TOP() {
%*LANG<MAIN-actions> := NQP::Actions;
my $*SCOPE := '';
my $*MULTINESS := '';
my $*METHODTYPE := '';
self.comp_unit;
}

Expand Down Expand Up @@ -302,7 +301,6 @@ rule routine_def {
}

rule method_def {
:my $*METHODTYPE := 'Method';
<deflongname>?
<.newpad>
[ '(' <signature> ')'
Expand Down

0 comments on commit 9612a72

Please sign in to comment.