Skip to content

Commit 1235a65

Browse files
committed
Introduce .made in favour of .ast, but keep .ast for now
1 parent 1658541 commit 1235a65

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/QRegex/Cursor.nqp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ class NQPMatch is NQPCapture {
678678
has $!orig;
679679
has int $!from;
680680
has int $!to;
681-
has $!ast;
681+
has $!made;
682682
has $!cursor;
683683

684684
method from() { $!from }
@@ -698,8 +698,9 @@ class NQPMatch is NQPCapture {
698698
method Bool() { $!to >= $!from }
699699
method chars() { $!to >= $!from ?? $!to - $!from !! 0 }
700700

701-
method !make($ast) { $!ast := $ast }
702-
method ast() { $!ast }
701+
method !make($made) { $!made := $made }
702+
method made() { $!made }
703+
method ast() { $!made } # for historical reasons
703704

704705
method dump($indent?) {
705706
unless nqp::defined($indent) {

0 commit comments

Comments
 (0)