Skip to content

Commit

Permalink
suppress useless use on INIT/ENTER/FIRST
Browse files Browse the repository at this point in the history
Would be nice to determine this in 2nd pass, but for now, it's
better to allow false negatives than false positives.
  • Loading branch information
TimToady committed Mar 28, 2017
1 parent 19eeddb commit 27f5469
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Perl6/Actions.nqp
Expand Up @@ -2106,9 +2106,9 @@ class Perl6::Actions is HLL::Actions does STDActions {
make $*W.add_phaser($/, 'CHECK', wanted($<blorst>.ast,'CHECK').ann('code_object'));
}
method statement_prefix:sym<COMPOSE>($/) { make $*W.add_phaser($/, 'COMPOSE', unwanted($<blorst>.ast,'COMPOSE').ann('code_object')); }
method statement_prefix:sym<INIT>($/) { make $*W.add_phaser($/, 'INIT', $<blorst>.ast.ann('code_object'), ($<blorst>.ast).ann('past_block')); }
method statement_prefix:sym<ENTER>($/) { make $*W.add_phaser($/, 'ENTER', $<blorst>.ast.ann('code_object')); }
method statement_prefix:sym<FIRST>($/) { make $*W.add_phaser($/, 'FIRST', $<blorst>.ast.ann('code_object')); }
method statement_prefix:sym<INIT>($/) { make $*W.add_phaser($/, 'INIT', wanted($<blorst>.ast,'INIT').ann('code_object'), ($<blorst>.ast).ann('past_block')); }
method statement_prefix:sym<ENTER>($/) { make $*W.add_phaser($/, 'ENTER', wanted($<blorst>.ast,'ENTER').ann('code_object')); }
method statement_prefix:sym<FIRST>($/) { make $*W.add_phaser($/, 'FIRST', wanted($<blorst>.ast,'FIRST').ann('code_object')); }

method statement_prefix:sym<END>($/) { make $*W.add_phaser($/, 'END', unwanted($<blorst>.ast,'END').ann('code_object')); }
method statement_prefix:sym<LEAVE>($/) { make $*W.add_phaser($/, 'LEAVE', unwanted($<blorst>.ast,'LEAVE').ann('code_object')); }
Expand Down

0 comments on commit 27f5469

Please sign in to comment.