@@ -173,13 +173,13 @@ sub process-pod-dir($dir, :$dr, :&sorted-by = &[cmp]) {
173
173
multi process-pod-source (: $ what where " language" , : $ dr , : $ pod , : $ podname , : $ pod-is-complete ) {
174
174
my $ name = $ podname ;
175
175
my $ summary = ' ' ;
176
- if $ pod . content [0 ] ~~ {$ _ ~~ Pod ::Block::Named and . name eq " TITLE" } {
177
- $ name = $ pod . content [0 ]. content [0 ]. content [0 ]
176
+ if $ pod . contents [0 ] ~~ {$ _ ~~ Pod ::Block::Named and . name eq " TITLE" } {
177
+ $ name = $ pod . contents [0 ]. contents [0 ]. contents [0 ]
178
178
} else {
179
179
note " $ podname does not have an =TITLE" ;
180
180
}
181
- if $ pod . content [1 ] ~~ {$ _ ~~ Pod ::Block::Named and . name eq " SUBTITLE" } {
182
- $ summary = $ pod . content [1 ]. content [0 ]. content [0 ];
181
+ if $ pod . contents [1 ] ~~ {$ _ ~~ Pod ::Block::Named and . name eq " SUBTITLE" } {
182
+ $ summary = $ pod . contents [1 ]. contents [0 ]. contents [0 ];
183
183
} else {
184
184
note " $ podname does not have an =SUBTITLE" ;
185
185
}
@@ -227,9 +227,9 @@ multi write-type-source($doc) {
227
227
an imgage showing the type relations for $ podname . If not, try the <a
228
228
href="/images/type-graph-{ uri_escape $ podname } .png">PNG
229
229
version</a>.</p> ] ;
230
- $ pod . content . push : Pod ::Raw. new (
230
+ $ pod . contents . push : Pod ::Raw. new (
231
231
target => ' html' ,
232
- content => $ tg-preamble ~ svg-for-file(" html/images/type-graph-$ podname .svg" ),
232
+ contents => $ tg-preamble ~ svg-for-file(" html/images/type-graph-$ podname .svg" ),
233
233
234
234
);
235
235
@@ -238,7 +238,7 @@ multi write-type-source($doc) {
238
238
239
239
for $ type . roles -> $ r {
240
240
next unless % methods-by-type {$ r };
241
- $ pod . content . push :
241
+ $ pod . contents . push :
242
242
pod-heading(" Methods supplied by role $ r" ),
243
243
pod-block(
244
244
" $ podname does role " ,
@@ -250,7 +250,7 @@ multi write-type-source($doc) {
250
250
}
251
251
for @ mro -> $ c {
252
252
next unless % methods-by-type {$ c };
253
- $ pod . content . push :
253
+ $ pod . contents . push :
254
254
pod-heading(" Methods supplied by class $ c" ),
255
255
pod-block(
256
256
" $ podname inherits from class " ,
@@ -261,7 +261,7 @@ multi write-type-source($doc) {
261
261
;
262
262
for $ c . roles -> $ r {
263
263
next unless % methods-by-type {$ r };
264
- $ pod . content . push :
264
+ $ pod . contents . push :
265
265
pod-heading(" Methods supplied by role $ r" ),
266
266
pod-block(
267
267
" $ podname inherits from class " ,
@@ -286,7 +286,7 @@ sub find-definitions (:$pod, :$origin, :$dr, :$min-level = -1) {
286
286
# If a heading is a definition, like "class FooBar", process
287
287
# the class and give the rest of the pod to find-definitions,
288
288
# which will return how far the definition of "class FooBar" extends.
289
- my @ c := $ pod ~~ Positional ?? @$ pod !! $ pod . content ;
289
+ my @ c := $ pod ~~ Positional ?? @$ pod !! $ pod . contents ;
290
290
my int $ i = 0 ;
291
291
my int $ len = + @ c ;
292
292
while $ i < $ len {
@@ -297,8 +297,8 @@ sub find-definitions (:$pod, :$origin, :$dr, :$min-level = -1) {
297
297
# Is this new header a definition?
298
298
# If so, begin processing it.
299
299
# If not, skip to the next heading.
300
- $ i = $ i + 1 and next unless $ c . content [0 ]. content [0 ] ~~ Str
301
- and 2 == my @ words = $ c . content [0 ]. content [0 ]. words ;
300
+ $ i = $ i + 1 and next unless $ c . contents [0 ]. contents [0 ] ~~ Str
301
+ and 2 == my @ words = $ c . contents [0 ]. contents [0 ]. words ;
302
302
303
303
my ($ subkinds , $ name ) = @ words ;
304
304
my % attr ;
@@ -333,7 +333,7 @@ sub find-definitions (:$pod, :$origin, :$dr, :$min-level = -1) {
333
333
# And updating $i to be after the places we've already searched
334
334
my int $ new-i = $ i + find-definitions : pod(@ c [$ i + 1.. * ]), : origin($ created ), : $ dr , : min-level(@ c [$ i ]. level);
335
335
336
- @ c [$ i ]. content [0 ] = pod-link " $ subkinds $ name" ,
336
+ @ c [$ i ]. contents [0 ] = pod-link " $ subkinds $ name" ,
337
337
$ created . url ~ " #$ origin. human-kind () $ origin. name ()" . subst (: g, /\s + /, ' _' );
338
338
339
339
my $ chunk = $ created . pod. push : pod-lower-headings(@ c [$ i .. $ new-i ], : to(% attr <kind > eq ' type' ?? 0 !! 2 ));
@@ -475,22 +475,22 @@ sub write-disambiguation-files($dr) {
475
475
if $ p . elems == 1 {
476
476
$ p = $ p [0 ] if $ p ~~ Array ;
477
477
if $ p . origin -> $ o {
478
- $ pod . content . push :
478
+ $ pod . contents . push :
479
479
pod-block(
480
480
pod-link(" '$ name ' is a $ p. human-kind ()" , $ p . url),
481
481
' from ' ,
482
482
pod-link($ o . human-kind() ~ ' ' ~ $ o . name , $ o . url),
483
483
);
484
484
}
485
485
else {
486
- $ pod . content . push :
486
+ $ pod . contents . push :
487
487
pod-block(
488
488
pod-link(" '$ name ' is a $ p. human-kind ()" , $ p . url)
489
489
);
490
490
}
491
491
}
492
492
else {
493
- $ pod . content . push :
493
+ $ pod . contents . push :
494
494
pod-block(" '$ name ' can be anything of the following" ),
495
495
$ p . map ({
496
496
if . origin -> $ o {
0 commit comments