Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use new World.current_file convenience method
  • Loading branch information
lizmat committed May 19, 2015
1 parent c53b603 commit a6e5e93
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Perl6/Actions.nqp
Expand Up @@ -1920,14 +1920,7 @@ Compilation unit '$file' contained the following violations:
HLL::Compiler.lineof($/.orig, $/.from, :cache(1)));
}
else {
my $file := nqp::getlexdyn('$?FILES');
if nqp::isnull($file) {
$file := '<unknown file>';
}
elsif !nqp::eqat($file,'/',0) {
$file := nqp::cwd ~ '/' ~ $file;
}
$past := $*W.add_string_constant($file);
$past := $*W.add_string_constant($*W.current_file);
}
}
elsif $past.name() eq '$?RAKUDO_MODULE_DEBUG' {
Expand Down

0 comments on commit a6e5e93

Please sign in to comment.