Permalink
Browse files

Stop breaking Cursor's encapsulation.

  • Loading branch information...
1 parent 0b5b9e8 commit 4e91efd4f16d2771981189181b4c59b2e12af3ad @jnthn jnthn committed Dec 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/HLL/Grammar.pm
  2. +1 −1 src/NQP/Grammar.pm
View
@@ -316,7 +316,7 @@ of the match.
method panic(*@args) {
my $pos := self.pos();
- my $target := nqp::getattr_s(self, NQPCursor, '$!target');
+ my $target := self.target();
@args.push(' at line ');
@args.push(HLL::Compiler.lineof($target, $pos) + 1);
@args.push(', near "');
View
@@ -18,7 +18,7 @@ grammar NQP::Grammar is HLL::Grammar {
# cross the compile-time/run-time boundary that are associated
# with this compilation unit.
my $file := pir::find_caller_lex__Ps('$?FILES');
- my $source_id := nqp::sha1(nqp::getattr_s(self, NQPCursor, '$!target')) ~
+ my $source_id := nqp::sha1(self.target()) ~
'-' ~ ~nqp::time_n();
my $*W := nqp::isnull($file) ??
NQP::World.new(:handle($source_id)) !!

0 comments on commit 4e91efd

Please sign in to comment.