Skip to content

Commit

Permalink
find_method: filter out NQPRoutine et al
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
zakame committed Jun 2, 2017
1 parent f828d80 commit 4d744c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Grammar/Profiler/Simple.pm
Expand Up @@ -4,6 +4,7 @@ my class ProfiledGrammarHOW is Metamodel::GrammarHOW {

method find_method($obj, $name) {
my $meth := callsame;
return $meth if $meth.^name eq 'NQPRoutine' || $meth !~~ Any || $meth !~~ Regex;
substr($name, 0, 1) eq '!' ||
substr($name, 0, 8) eq 'dispatch' ||
$name eq anyparse CREATE Bool defined MATCH Stringy Str WHERE orig BUILD DESTROY ») ??
Expand Down

0 comments on commit 4d744c0

Please sign in to comment.