Skip to content

Commit 8c8d5ea

Browse files
committed
Use nqp::getlexdyn in place of pir:: op.
1 parent e4e732c commit 8c8d5ea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/QRegex/Cursor.nqp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ role NQPCursorRole is export {
174174
}
175175

176176
method !reduce(str $name) {
177-
my $actions := pir::find_dynamic_lex__Ps('$*ACTIONS');
177+
my $actions := nqp::getlexdyn('$*ACTIONS');
178178
nqp::findmethod($actions, $name)($actions, self.MATCH)
179179
if !nqp::isnull($actions) && nqp::can($actions, $name);
180180
}
181181

182182
method !reduce_with_match($name, $key, $match) {
183-
my $actions := pir::find_dynamic_lex__Ps('$*ACTIONS');
183+
my $actions := nqp::getlexdyn('$*ACTIONS');
184184
nqp::findmethod($actions, $name)($actions, $match, $key)
185185
if !nqp::isnull($actions) && nqp::can($actions, $name);
186186
}

src/QRegex/P5Regex/Grammar.nqp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ grammar QRegex::P5Regex::Grammar is HLL::Grammar {
4646
}
4747

4848
token nibbler {
49-
:my $OLDRX := pir::find_dynamic_lex__Ps('%*RX');
49+
:my $OLDRX := nqp::getlexdyn('%*RX');
5050
:my %*RX;
5151
{
5252
for $OLDRX { %*RX{$_.key} := $_.value; }
@@ -134,7 +134,7 @@ grammar QRegex::P5Regex::Grammar is HLL::Grammar {
134134
token p5mod { <[imsox]>* }
135135
token p5mods { <on=p5mod> [ '-' <off=p5mod> ]? }
136136
token p5assertion:sym<mod> {
137-
:my %*OLDRX := pir::find_dynamic_lex__Ps('%*RX');
137+
:my %*OLDRX := nqp::getlexdyn('%*RX');
138138
:my %*RX;
139139
{
140140
for %*OLDRX { %*RX{$_.key} := $_.value; }

src/QRegex/P6Regex/Grammar.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
6868
}
6969

7070
token nibbler {
71-
:my $OLDRX := pir::find_dynamic_lex__Ps('%*RX');
71+
:my $OLDRX := nqp::getlexdyn('%*RX');
7272
:my %*RX;
7373
{
7474
for $OLDRX { %*RX{$_.key} := $_.value; }

0 commit comments

Comments
 (0)