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

Commit

Permalink
Refactor 83747bd to avoid the "skip_multi" flag on PAST nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Aug 27, 2010
1 parent 83747bd commit 20477be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/NQP/Actions.pm
Expand Up @@ -490,7 +490,8 @@ method signature($/) {
if $*MULTINESS eq "multi" {
my @params;
for $BLOCKINIT.list {
@params.push($_.multitype // '_') unless $_<skip_multi>;
@params.push($_.multitype // '_')
unless $_.slurpy || $_.named || $_.viviself;
}
@BLOCK[0].multi(@params);
}
Expand All @@ -504,18 +505,15 @@ method parameter($/) {
if $quant ne '!' {
$past.viviself( vivitype($<named_param><param_var><sigil>) );
}
$past<skip_multi> := 1;
}
else {
$past := $<param_var>.ast;
if $quant eq '*' {
$past.slurpy(1);
$past.named( $<param_var><sigil> eq '%' );
$past<skip_multi> := 1;
}
elsif $quant eq '?' {
$past.viviself( vivitype($<param_var><sigil>) );
$past<skip_multi> := 1;
}
}
if $<default_value> {
Expand Down

0 comments on commit 20477be

Please sign in to comment.