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

Commit

Permalink
Browse files Browse the repository at this point in the history
Set :nsentry on our methods
  • Loading branch information
tene committed Jul 25, 2010
1 parent 88f0d0d commit 96bc191
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NQP/Actions.pm
Expand Up @@ -466,6 +466,9 @@ method routine_def($/) {
method method_def($/) {
my $past := $<blockoid>.ast;
$past.blocktype('method');
if $*SCOPE eq 'our' {
$past.pirflags(':nsentry');
}
$past.control('return_pir');
$past[0].unshift( PAST::Op.new( :inline(' .lex "self", self') ) );
$past.symbol('self', :scope('lexical') );
Expand Down

0 comments on commit 96bc191

Please sign in to comment.