Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (30 sloc) 0.88 kb
class QAST::Want is QAST::Node {
method has_compile_time_value() {
nqp::istype(self[0], QAST::Node)
?? self[0].has_compile_time_value()
!! 0
}
method compile_time_value() {
self[0].compile_time_value()
}
method substitute_inline_placeholders(@fillers) {
my $result := self.shallow_clone();
my $i := 0;
my $elems := +@(self);
while $i < $elems {
$result[$i] := self[$i].substitute_inline_placeholders(@fillers);
$i := $i + 2;
}
$result
}
method evaluate_unquotes(@unquotes) {
my $result := pir::repr_clone__PP(self);
my $i := 0;
my $elems := +@(self);
while $i < $elems {
$result[$i] := self[$i].evaluate_unquotes(@unquotes);
$i := $i + 2;
}
$result
}
}
Jump to Line
Something went wrong with that request. Please try again.