Skip to content

Commit 9647ef9

Browse files
committed
make ints_to_string a method, so that it can be overridden in subclasses
1 parent 05d6ab2 commit 9647ef9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HLL/Actions.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class HLL::Actions {
66
nqp::atkey($res, 0);
77
}
88

9-
our sub ints_to_string($ints) {
9+
method ints_to_string($ints) {
1010
if pir::does($ints, 'array') {
1111
my $result := '';
1212
for $ints {
@@ -144,11 +144,11 @@ class HLL::Actions {
144144
method quote_escape:sym<esc>($/) { make "\c[27]"; }
145145

146146
method quote_escape:sym<hex>($/) {
147-
make ints_to_string( $<hexint> ?? $<hexint> !! $<hexints><hexint> );
147+
make self.ints_to_string( $<hexint> ?? $<hexint> !! $<hexints><hexint> );
148148
}
149149

150150
method quote_escape:sym<oct>($/) {
151-
make ints_to_string( $<octint> ?? $<octint> !! $<octints><octint> );
151+
make self.ints_to_string( $<octint> ?? $<octint> !! $<octints><octint> );
152152
}
153153

154154
method quote_escape:sym<chr>($/) {

0 commit comments

Comments
 (0)