Skip to content

Commit 51c43bf

Browse files
committed
Switch some things over to positional_delegate.
1 parent 6ad0c64 commit 51c43bf

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

src/QAST/Node.nqp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
class QAST::Node {
22
# For children.
3-
has @!array
4-
is parrot_vtable_handler('get_pmc_keyed_int')
5-
is parrot_vtable_handler('set_pmc_keyed_int')
6-
is parrot_vtable_handler('unshift_pmc')
7-
is parrot_vtable_handler('push_pmc')
8-
;
3+
has @!array is positional_delegate;
94

105
# For annotations, lazily allocated.
116
has %!hash;

src/core/NQPCapture.pm

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
my class NQPCapture {
2-
has @!array
3-
is parrot_vtable_handler('get_pmc_keyed_int')
4-
is parrot_vtable_handler('set_pmc_keyed_int')
5-
is parrot_vtable_handler('unshift_pmc')
6-
is parrot_vtable_handler('push_pmc')
7-
;
2+
has @!array is positional_delegate;
83

94
has %!hash
105
is parrot_vtable_handler('get_pmc_keyed_str')

src/core/NQPMu.pm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ my class NQPMu {
8787
0
8888
}
8989

90-
proto method at_pos($pos) is parrot_vtable('get_pmc_keyed_int') { * }
91-
multi method at_pos(NQPMu:U $self: $pos) {
92-
NQPMu
93-
}
94-
9590
proto method at_key($key) is parrot_vtable('get_pmc_keyed_str') { * }
9691
multi method at_key(NQPMu:U $self: $key) {
9792
NQPMu

0 commit comments

Comments
 (0)