Skip to content

Commit

Permalink
Add lexical slot for dispatcher to store candidate list holder in met…
Browse files Browse the repository at this point in the history
…hods.
  • Loading branch information
jnthn committed May 5, 2009
1 parent ee10f59 commit 8009acf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser/actions.pm
Expand Up @@ -795,12 +795,13 @@ method method_def($/) {
$block.name( ~$<longname> );
}

# Add lexical 'self'.
# Add lexical 'self' and a slot for the candidate dispatcher list.
$block[0].unshift(
PAST::Var.new( :name('self'), :scope('lexical'), :isdecl(1),
:viviself( PAST::Var.new( :name('self'), :scope('register' ) ) )
)
);
$block[0].unshift(PAST::Var.new( :name('__CANDIATE_LIST__'), :scope('lexical'), :isdecl(1) ));

$block.control(return_handler_past());
block_signature($block);
Expand Down

0 comments on commit 8009acf

Please sign in to comment.