Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Eliminate a pir:: and a method call.
  • Loading branch information
jnthn committed Nov 20, 2011
1 parent 0ad267e commit ac24a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Cursor.pm
@@ -1,7 +1,7 @@
my class Cursor does NQPCursorRole {
method MATCH() {
my $match := nqp::getattr(self, Cursor, '$!match');
return $match if pir::type_check__IPP($match, Match) && $match.defined;
return $match if nqp::istype($match, Match) && nqp::isconcrete($match);
$match := nqp::create(Match);
nqp::bindattr($match, Match, '$!orig', nqp::getattr(self, Cursor, '$!orig'));
nqp::bindattr($match, Match, '$!from', nqp::p6box_i(nqp::getattr_i(self, Cursor, '$!from')));
Expand Down

0 comments on commit ac24a6d

Please sign in to comment.