Skip to content

Commit 2e6a2a5

Browse files
committed
Improve "p6doc -f" output
Add back Type:: prefix since this is used elsewhere by p6doc Strip "routine" and "method" from results
1 parent 104331a commit 2e6a2a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/p6doc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ sub disambiguate-f-search( $docee, %data ) {
131131
if %data{$ndocee} {
132132
my @types = %data{$ndocee}.values>>.Str.grep({ $^v ~~ /^ 'Type' / and not $^v ~~ / 'Cool' $ / });
133133
@types = [gather @types.deepmap(*.take)].unique.list;
134+
@types.=grep({!/$pref/});
134135
%found{$ndocee}.push: @types X~ "." ~ $docee;
135136
}
136137
}
@@ -147,7 +148,7 @@ sub disambiguate-f-search( $docee, %data ) {
147148

148149
my %options;
149150
for %found.keys -> $key {
150-
%options{$key}.push: %found{$key}>>.subst(/^'Type::'/, '');
151+
%options{$key}.push: %found{$key};
151152
}
152153

153154
# 's' => Type::Supply.grep, ... | and we specifically want the %found values,

0 commit comments

Comments
 (0)