Skip to content

Commit 2f58b36

Browse files
committed
Replace pir::find_caller_lex.
1 parent ad81875 commit 2f58b36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NQP/Grammar.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ grammar NQP::Grammar is HLL::Grammar {
1717
# Serialization context builder - keeps track of objects that
1818
# cross the compile-time/run-time boundary that are associated
1919
# with this compilation unit.
20-
my $file := pir::find_caller_lex__Ps('$?FILES');
20+
my $file := nqp::getlexdyn('$?FILES');
2121
my $source_id := nqp::sha1(self.target()) ~
2222
(%*COMPILING<%?OPTIONS><stable-sc> ?? '' !! '-' ~ ~nqp::time_n());
2323
my $*W := nqp::isnull($file) ??

src/QAST/PIRT.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class PIRT::Sub is PIRT::Node {
205205
nqp::push(@parts, $sub_decl);
206206
207207
# File annotation, if there is one.
208-
my $file := pir::find_caller_lex__Ps('$?FILES');
208+
my $file := nqp::getlexdyn('$?FILES');
209209
if nqp::ifnull($file, '') {
210210
nqp::push(@parts, ".annotate 'file', " ~ self.escape($file));
211211
}

0 commit comments

Comments
 (0)