Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Some declaration_static marking fixes.
  • Loading branch information
jnthn committed Sep 28, 2013
1 parent 6ae4625 commit cc3d5c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NQP/Actions.nqp
Expand Up @@ -602,7 +602,7 @@ class NQP::Actions is HLL::Actions {
# a fixed lexical, but for generic types it becomes a parameter. Also
# for parametric types, pass along the role body block.
if nqp::can($how, 'parametric') && $how.parametric($how) {
$past.blocktype('declaration');
$past.blocktype('declaration_static');
my $params := QAST::Stmts.new(
QAST::Var.new( :name('$?CLASS'), :scope('lexical'), :decl('param') )
);
Expand Down Expand Up @@ -799,11 +799,11 @@ class NQP::Actions is HLL::Actions {
}
else {
$past := $<blockoid>.ast;
$past.blocktype('declaration');
if $*RETURN_USED {
$past[1] := wrap_return_handler($past[1]);
}
}
$past.blocktype('declaration');
my $block := $past;

if $<deflongname> {
Expand Down Expand Up @@ -945,11 +945,11 @@ class NQP::Actions is HLL::Actions {
}
else {
$past := $<blockoid>.ast;
$past.blocktype('declaration_static');
if $*RETURN_USED {
$past[1] := wrap_return_handler($past[1]);
}
}
$past.blocktype('declaration_static');

# Always need an invocant.
unless $past<signature_has_invocant> {
Expand Down

0 comments on commit cc3d5c8

Please sign in to comment.