@@ -32,7 +32,7 @@ use Pod::Htmlify;
32
32
my $ * DEBUG = False ;
33
33
34
34
my $ type-graph ;
35
- my % methods -by-type ;
35
+ my % routines -by-type ;
36
36
my % * POD2HTML-CALLBACKS ;
37
37
38
38
# TODO: Generate menulist automatically
@@ -263,32 +263,32 @@ multi write-type-source($doc) {
263
263
my @ roles-todo = $ type . roles;
264
264
my % roles-seen ;
265
265
while @ roles-todo . shift -> $ role {
266
- next unless % methods -by-type {$ role };
266
+ next unless % routines -by-type {$ role };
267
267
next if % roles-seen {$ role }++ ;
268
268
@ roles-todo . push : $ role . roles;
269
269
$ pod . contents. push :
270
- pod-heading(" Methods supplied by role $ role" ),
270
+ pod-heading(" Routines supplied by role $ role" ),
271
271
pod-block(
272
272
" $ podname does role " ,
273
273
pod-link($ role . name , " /type/{ uri_escape ~ $ role } " ),
274
274
" , which provides the following methods:" ,
275
275
),
276
- % methods -by-type {$ role }. list,
276
+ % routines -by-type {$ role }. list,
277
277
;
278
278
}
279
279
for @ mro -> $ class {
280
- next unless % methods -by-type {$ class };
280
+ next unless % routines -by-type {$ class };
281
281
$ pod . contents. push :
282
- pod-heading(" Methods supplied by class $ class" ),
282
+ pod-heading(" Routines supplied by class $ class" ),
283
283
pod-block(
284
284
" $ podname inherits from class " ,
285
285
pod-link($ class . name , " /type/{ uri_escape ~ $ class } " ),
286
286
" , which provides the following methods:" ,
287
287
),
288
- % methods -by-type {$ class }. list,
288
+ % routines -by-type {$ class }. list,
289
289
;
290
290
for $ class . roles -> $ role {
291
- next unless % methods -by-type {$ role };
291
+ next unless % routines -by-type {$ role };
292
292
$ pod . contents. push :
293
293
pod-heading(" Methods supplied by role $ role" ),
294
294
pod-block(
@@ -298,7 +298,7 @@ multi write-type-source($doc) {
298
298
pod-link($ role . name , " /type/{ uri_escape ~ $ role } " ),
299
299
" , which provides the following methods:" ,
300
300
),
301
- % methods -by-type {$ role }. list,
301
+ % routines -by-type {$ role }. list,
302
302
;
303
303
}
304
304
}
@@ -444,8 +444,8 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
444
444
$ created . subkinds = @ subkinds ;
445
445
$ created . categories = @ subkinds ;
446
446
}
447
- if $ subkinds ∋ ' method ' {
448
- % methods -by-type {$ origin . name }. push : $ chunk ;
447
+ if % attr < kind > eq ' routine ' {
448
+ % routines -by-type {$ origin . name }. push : $ chunk ;
449
449
write-qualified-method-call(
450
450
: $ name ,
451
451
: pod($ chunk ),
@@ -698,6 +698,7 @@ sub write-qualified-method-call(:$name!, :$pod!, :$type!) {
698
698
pod-block(' From ' , pod-link($ type , " /type/{ $ type } #$ name" )),
699
699
@$ pod ,
700
700
);
701
+ return if $ name ~~ / '/' /;
701
702
spurt " html/routine/{ $ type } .{ $ name } .html" , p2h($ p , ' routine' );
702
703
}
703
704
0 commit comments