Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add a prune method to NQPCursor.
  • Loading branch information
timo committed Aug 5, 2013
1 parent d6f0f6f commit b8b4e53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/QRegex/Cursor.nqp
Expand Up @@ -624,6 +624,12 @@ class NQPMatch is NQPCapture {
method !make($ast) { $!ast := $ast }
method ast() { $!ast }

method prune() {
nqp::bindattr(self, NQPCapture, '@!array', NQPMu);
nqp::bindattr(self, NQPCapture, '%!hash', NQPMu);
$!cursor := NQPMu;
}

method dump($indent?) {
unless nqp::defined($indent) {
$indent := 0;
Expand Down

0 comments on commit b8b4e53

Please sign in to comment.