fix #:all-defined for 'define-package' by adjusting 'identifier-remove-from-definition-context'; add for-syntax 'package?' and 'package-export-identifiers'; adjust Scribble to find definitions of phase-1 exports
svn: r13253 original commit: db12513b65e79d2fe9e3c824e4232b1c981082d0
This commit is contained in:
parent
cead2168ac
58f9cd85ed
5302203d42
c77f08c015
710b66d58c
113935619f
322be283e3
8686fbf81c
31a7a10dc3
fb906ad2d0
8733ec9586
5cee45dc0b
4e0988f3a8
cb9a985182
1171920a82
64919abe7b
1c19af99c4
c954445908
2e8e8fb730
6d37b145df
88e4b31afe
1096283709
d6f7cf6e56
4bc0939c57
d975dc7f2d
10af6b4da4
59a4845d0a
commit
74e933d24e
|
@ -28,10 +28,11 @@
|
||||||
;; because no one uses the same name for different-phase exported
|
;; because no one uses the same name for different-phase exported
|
||||||
;; bindings.
|
;; bindings.
|
||||||
;;
|
;;
|
||||||
;; However, we assume that bidings are defined as originating from some
|
;; Formerly, we assumed that bidings are defined as originating from some
|
||||||
;; module at phase 0. Maybe it's defined at phase 1 and re-exported
|
;; module at phase 0. [Maybe it's defined at phase 1 and re-exported
|
||||||
;; later for phase 0 (after a require-for-template), in which case the
|
;; later for phase 0 (after a require-for-template), in which case the
|
||||||
;; re-exporting module is the one we find.
|
;; re-exporting module is the one we find.] That assumption has been
|
||||||
|
;; lifted, however; search for "GONE" below.
|
||||||
(let ([b (cond
|
(let ([b (cond
|
||||||
[(identifier? stx/binding)
|
[(identifier? stx/binding)
|
||||||
(identifier-binding stx/binding phase-level)]
|
(identifier-binding stx/binding phase-level)]
|
||||||
|
@ -74,7 +75,7 @@
|
||||||
[export-phase (list-ref (car queue) 4)]
|
[export-phase (list-ref (car queue) 4)]
|
||||||
[queue (cdr queue)])
|
[queue (cdr queue)])
|
||||||
(let* ([rmp (module-path-index-resolve mod)]
|
(let* ([rmp (module-path-index-resolve mod)]
|
||||||
[eb (and (equal? 0 export-phase) ;; look for the phase-0 export; good idea?
|
[eb (and ;; GONE: (equal? 0 export-phase) ;; look for the phase-0 export; good idea?
|
||||||
(list (module-path-index->taglet mod)
|
(list (module-path-index->taglet mod)
|
||||||
id))])
|
id))])
|
||||||
(when (and eb
|
(when (and eb
|
||||||
|
|
Loading…
Reference in New Issue
Block a user