Skip to content

Commit ada0d13

Browse files
committed
Fix for latest Rakudo
1 parent 5c25606 commit ada0d13

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

htmlify.p6

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ sub process-language-source(:$pod, :$podname, :$pod-is-complete) {
224224
}
225225

226226
sub process-type-source(:$pod, :$podname, :$pod-is-complete) {
227+
my $summary = '';
228+
if $pod.contents[1] ~~ {$_ ~~ Pod::Block::Named and .name eq "SUBTITLE"} {
229+
$summary = $pod.contents[1].contents[0].contents[0];
230+
} else {
231+
note "$podname does not have an =SUBTITLE";
232+
}
227233
my $type = $tg.types{$podname};
228234
my $origin = $DR.add-new(
229235
:kind<type>,
@@ -635,15 +641,15 @@ sub tap-index-files () {
635641

636642
sub tap-index(Supply $s, :$kind!, :$category = Nil, :&summary = {Nil}, :&preamble) {
637643
$s.categorize({.name}).map(-> $p {
638-
$p.value.grab(->@v{
644+
$p.value.grab(-> @v {
639645
$p.key => [
640646
say @v.elems;
641-
@v.map({.subkinds // Nil}).uniq.join(', '),
647+
@v.map({.subkinds // Nil}).unique.join(', '),
642648
pod-link(@v[0].name, @v[0].url),
643649
@v.&summary,
644650
]
645651
})
646-
}).reduce(->$a,*@b{merge $a: @b}).tap: {
652+
}).reduce(-> $a, *@b { merge $a: @b }).tap: {
647653
my $t = .grab({ pod-with-title
648654
"Perl 6 {join " ", $category.tc, $kind.tc}s",
649655
preamble($kind),

lib/Perl6/TypeGraph/Viz.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Perl6::TypeGraph::Viz {
3838
@.types .= unique;
3939

4040
# Find a new batch of seed nodes
41-
@seeds = uniq(@seeds>>.sub, @seeds>>.doers);
41+
@seeds = unique(@seeds>>.sub, @seeds>>.doers);
4242

4343
# If we're not growing the node pool, stop trying
4444
last if @.types <= @prev or !@seeds;

0 commit comments

Comments
 (0)