Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add clear_annotations method.
  • Loading branch information
Donald Hunter committed Jan 19, 2015
1 parent 94ed47c commit 9f1320c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/QAST/Node.nqp
Expand Up @@ -73,6 +73,10 @@ class QAST::Node {
nqp::ishash(%!annotations) && nqp::existskey(%!annotations, $key)
}

method clear_annotations() {
%!annotations := nqp::null();
}

my %uniques;
method unique($prefix) {
my $id := nqp::existskey(%uniques, $prefix) ??
Expand Down

0 comments on commit 9f1320c

Please sign in to comment.