Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
align perl6-debug to latest grammar change
statementlist does take an argument now, we just hand that along.
  • Loading branch information
FROGGS committed Feb 15, 2014
1 parent 06fee3d commit 40b76ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/perl6-debug.nqp
Expand Up @@ -374,7 +374,7 @@ class Perl6::HookActions is Perl6::Actions {
class Perl6::HookGrammar is Perl6::Grammar {
my %seen_files;

method statementlist() {
method statementlist($*statement_level = 0) {
my $file := nqp::getlexcaller('$?FILES') // $*ANON_CODE_NAME;
unless nqp::existskey(%*SEEN_FILES, $file) {
if $*DEBUG_HOOKS.has_hook('new_file') {
Expand All @@ -386,7 +386,7 @@ class Perl6::HookGrammar is Perl6::Grammar {
my $cur_st_depth := $*ST_DEPTH;
{
my $*ST_DEPTH := $cur_st_depth + 1;
Perl6::Grammar.HOW.find_method(Perl6::Grammar, 'statementlist')(self)
Perl6::Grammar.HOW.find_method(Perl6::Grammar, 'statementlist')(self, $*statement_level)
}
}

Expand Down

0 comments on commit 40b76ef

Please sign in to comment.