Skip to content

Commit

Permalink
Some slight tweaks to code generation of is also classses and when no…
Browse files Browse the repository at this point in the history
… Main is in effect.
  • Loading branch information
jnthn committed Feb 18, 2009
1 parent 75ea93f commit a020241
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser/actions.pm
Expand Up @@ -30,6 +30,7 @@ method TOP($/) {
our $?SUPPRESS_MAIN;
my $main;
if $?SUPPRESS_MAIN {
$past.push(PAST::Stmts.new());
$main := $past;
}
else {
Expand Down Expand Up @@ -1757,7 +1758,7 @@ method package_def($/, $key) {
$block.blocktype('immediate');
$block.pirflags('');
}
else {
elsif !$block<isalso> {
$block[0].push( PAST::Op.new( :name('!meta_compose'), $?METACLASS) );
}

Expand Down

0 comments on commit a020241

Please sign in to comment.