diff --git a/doc-coverage/export-lists.rkt b/doc-coverage/export-lists.rkt index a061c27..2100335 100644 --- a/doc-coverage/export-lists.rkt +++ b/doc-coverage/export-lists.rkt @@ -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)))