Skip to content

Commit

Permalink
Add pos attribute to X::Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelzro committed Feb 13, 2016
1 parent 9576596 commit 6015ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/World.nqp
Expand Up @@ -3868,6 +3868,7 @@ class Perl6::World is HLL::World {

# Build and throw exception object.
%opts<line> := HLL::Compiler.lineof($c.orig, $c.pos, :cache(1));
%opts<pos> := $c.pos;
%opts<modules> := p6ize_recursive(@*MODULES // []);
%opts<pre> := @locprepost[0];
%opts<post> := @locprepost[1];
Expand Down
1 change: 1 addition & 0 deletions src/core/Exception.pm
Expand Up @@ -525,6 +525,7 @@ my class X::IO::Chmod does X::IO {

my role X::Comp is Exception {
has $.filename;
has $.pos;
has $.line;
has $.column;
has @.modules;
Expand Down

0 comments on commit 6015ce7

Please sign in to comment.