Skip to content

Commit b6956cf

Browse files
committed
[Advent::GrammarProfiler.pm] add BUILD and DESTROY to methods JimmyZ++ PerlJam++
Follow Grammar::Profiler::Simple - hopefully fixes recent failures
1 parent 72b7cdc commit b6956cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/Advent/GrammarProfiler.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ use v6;
22

33
our %timing;
44

5-
my class ProfiledGrammarHOW is Metamodel::GrammarHOW is Mu {
5+
my class ProfiledGrammarHOW is Metamodel::GrammarHOW {
66

77
method find_method($obj, $name) {
88
my $meth := callsame;
9-
substr($name, 0, 1) eq '!' || $name eq any(<parse CREATE Bool defined MATCH perl>) ??
9+
substr($name, 0, 1) eq '!' || $name eq any(<parse CREATE Bool defined MATCH perl BUILD DESTROY>) ??
1010
$meth !!
1111
-> $c, |args {
1212
my $grammar = $obj.WHAT.perl;

0 commit comments

Comments
 (0)