Skip to content

Commit cf88f9e

Browse files
committed
Standardize introspection interface implemented in the role meta-objects. Unregresses the roles.t breakage in the last commit.
1 parent eafc258 commit cf88f9e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/how/NQPConcreteRoleHOW.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ knowhow NQPConcreteRoleHOW {
107107
## Introspecty
108108
##
109109

110-
method methods($obj) {
110+
method methods($obj, :$local) {
111111
my @meths;
112112
for %!methods {
113113
@meths.push($_.value);
@@ -127,7 +127,7 @@ knowhow NQPConcreteRoleHOW {
127127
$!name
128128
}
129129

130-
method attributes($obj) {
130+
method attributes($obj, :$local) {
131131
my @attrs;
132132
for %!attributes {
133133
@attrs.push($_.value);

src/how/NQPParametricRoleHOW.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ knowhow NQPParametricRoleHOW {
143143
## Introspecty
144144
##
145145

146-
method methods($obj) {
146+
method methods($obj, :$local) {
147147
my @meths;
148148
for %!methods {
149149
@meths.push($_.value);
@@ -159,7 +159,7 @@ knowhow NQPParametricRoleHOW {
159159
$!name
160160
}
161161

162-
method attributes($obj) {
162+
method attributes($obj, :$local) {
163163
my @attrs;
164164
for %!attributes {
165165
@attrs.push($_.value);

0 commit comments

Comments
 (0)