Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace pir::find_caller_lex.
  • Loading branch information
jnthn committed Feb 24, 2013
1 parent ad81875 commit 2f58b36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NQP/Grammar.pm
Expand Up @@ -17,7 +17,7 @@ grammar NQP::Grammar is HLL::Grammar {
# Serialization context builder - keeps track of objects that
# cross the compile-time/run-time boundary that are associated
# with this compilation unit.
my $file := pir::find_caller_lex__Ps('$?FILES');
my $file := nqp::getlexdyn('$?FILES');
my $source_id := nqp::sha1(self.target()) ~
(%*COMPILING<%?OPTIONS><stable-sc> ?? '' !! '-' ~ ~nqp::time_n());
my $*W := nqp::isnull($file) ??
Expand Down
2 changes: 1 addition & 1 deletion src/QAST/PIRT.nqp
Expand Up @@ -205,7 +205,7 @@ class PIRT::Sub is PIRT::Node {
nqp::push(@parts, $sub_decl);
# File annotation, if there is one.
my $file := pir::find_caller_lex__Ps('$?FILES');
my $file := nqp::getlexdyn('$?FILES');
if nqp::ifnull($file, '') {
nqp::push(@parts, ".annotate 'file', " ~ self.escape($file));
}
Expand Down

0 comments on commit 2f58b36

Please sign in to comment.