tools.crossref: fix method cross-referencing
parent
271afe3fde
commit
e26393394d
|
@ -61,18 +61,17 @@ M: pathname uses string>> source-file top-level-form>> [ uses ] [ { } ] if* ;
|
||||||
! To make UI browser happy
|
! To make UI browser happy
|
||||||
M: vocab uses drop f ;
|
M: vocab uses drop f ;
|
||||||
|
|
||||||
GENERIC: crossref-def ( defspec -- )
|
: crossref-def ( defspec -- )
|
||||||
|
|
||||||
M: object crossref-def
|
|
||||||
dup uses crossref get add-vertex ;
|
dup uses crossref get add-vertex ;
|
||||||
|
|
||||||
M: word crossref-def
|
|
||||||
[ call-next-method ] [ subwords [ crossref-def ] each ] bi ;
|
|
||||||
|
|
||||||
: defs-to-crossref ( -- seq )
|
: defs-to-crossref ( -- seq )
|
||||||
[
|
[
|
||||||
all-words [ generic? not ] filter
|
all-words
|
||||||
|
[ [ generic? not ] filter ]
|
||||||
|
[ [ subwords ] map concat ] bi
|
||||||
|
|
||||||
all-articles [ >link ] map
|
all-articles [ >link ] map
|
||||||
|
|
||||||
source-files get keys [ <pathname> ] map
|
source-files get keys [ <pathname> ] map
|
||||||
] append-outputs ;
|
] append-outputs ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue