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

Commit

Permalink
Quick 'n' dirty cut of private methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jan 22, 2011
1 parent 25921fc commit daf5b1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/NQP/Actions.pm
Expand Up @@ -709,7 +709,7 @@ method method_def($/) {
# Install it where it should go (methods table / namespace).
if $<deflongname> {
# Set name.
my $name := ~$<deflongname>[0].ast;
my $name := ~$<private> ~ ~$<deflongname>[0].ast;
$past.name($name);

# If it's a proto, we'll mark it as such by giving it an empty candidate
Expand Down
1 change: 1 addition & 0 deletions src/NQP/Grammar.pm
Expand Up @@ -345,6 +345,7 @@ rule routine_def {

rule method_def {
:my $*INVOCANT_OK := 1;
$<private>=['!'?]
<deflongname>?
<.newpad>
[ '(' <signature> ')'
Expand Down

0 comments on commit daf5b1e

Please sign in to comment.