Skip to content

Commit

Permalink
Fix a couple of readtype bugs, which deals with many of the failures …
Browse files Browse the repository at this point in the history
…from the signature changes.
  • Loading branch information
jnthn committed Oct 6, 2009
1 parent 41bc84f commit d39a7de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/parser/actions.pm
Expand Up @@ -1054,7 +1054,7 @@ method signature($/, $key) {
:optional( $var.viviself() ?? 1 !! 0 ),
:slurpy( $var.slurpy() ),
:names( $var.named() eq "" ?? list() !! list($var.named()) ),
:readtype( $readtype ),
:read_type( $readtype ),
:invocant( $invocant ),
:multi_invocant( $multi_inv_suppress ?? 0 !! 1 ),
:types( $var<type> )
Expand Down
4 changes: 2 additions & 2 deletions src/parser/signature.pm
Expand Up @@ -115,8 +115,8 @@ method ast($high_level?) {
$_<types>.named('type');
$add_param.push($_<types>);
}
if $_<readtype> {
$add_param.push(PAST::Val.new( :value(~$_<readtype>), :named('readtype') ));
if $_<read_type> {
$add_param.push(PAST::Val.new( :value(~$_<read_type>), :named('readtype') ));
}
if $_<names> {
if $_<names> eq "1" && $_<slurpy> {
Expand Down

0 comments on commit d39a7de

Please sign in to comment.