Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
A little more PAST to QAST.
  • Loading branch information
jnthn committed Jul 14, 2012
1 parent 00efc81 commit 1051dc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/QPerl6/Actions.pm
Expand Up @@ -1967,7 +1967,7 @@ class QPerl6::Actions is HLL::Actions {
}

my $closure := block_closure(reference_to_code_object($code, $past));
$closure<sink_past> := PAST::Op.new( :pasttype('null') );
$closure<sink_past> := QAST::Op.new( :op('null') );
make $closure;
}

Expand Down Expand Up @@ -2052,7 +2052,7 @@ class QPerl6::Actions is HLL::Actions {
}

my $closure := block_closure(reference_to_code_object($code, $past));
$closure<sink_past> := PAST::Op.new( :pasttype('null') );
$closure<sink_past> := QAST::Op.new( :op('null') );
make $closure;
}

Expand Down Expand Up @@ -2219,7 +2219,7 @@ class QPerl6::Actions is HLL::Actions {

# Return closure if not in sink context.
my $closure := block_closure($coderef);
$closure<sink_past> := PAST::Op.new( :pasttype('null') );
$closure<sink_past> := QAST::Op.new( :op('null') );
make $closure;
}

Expand Down Expand Up @@ -4467,7 +4467,7 @@ class QPerl6::Actions is HLL::Actions {
$<p6regex>.ast, 'anon', '', [], $block, :use_outer_match(1));
# Return closure if not in sink context.
my $closure := block_closure($coderef);
$closure<sink_past> := PAST::Op.new( :pasttype('null') );
$closure<sink_past> := QAST::Op.new( :op('null') );
make $closure;
}

Expand Down

0 comments on commit 1051dc7

Please sign in to comment.