Rearrange export-lists definitions

This commit is contained in:
JackFirth 2015-02-21 00:09:11 -08:00
parent 06aebed001
commit e5f3b21059

View File

@ -19,14 +19,14 @@
(map first
(apply append (map (curryr drop 1) exports))))
(define (has-docs? mod binding)
(not (not (xref-binding->definition-tag xref (list mod binding) #f))))
(define (module->all-exported-names mod)
(let-values ([(exp-values exp-syntax) (module->exports mod)])
(append (phase-exports->names exp-values)
(phase-exports->names exp-syntax))))
(define (has-docs? mod binding)
(not (not (xref-binding->definition-tag xref (list mod binding) #f))))
(define (module->documented-exported-names mod)
(filter (curry has-docs? mod)
(module->all-exported-names mod)))