clarify "unknown module" error message in determine-module-imports
original commit: 6af5ae075c4cce789d3528c3a6ef2620f90793e8
This commit is contained in:
parent
75bce2810b
commit
47e236a07c
2
LOG
2
LOG
|
@ -999,3 +999,5 @@
|
|||
misc.ms
|
||||
- flush expand-output and expand/optimize-output ports
|
||||
compile.ss
|
||||
- clarify "unknown module" error message in determine-module-imports
|
||||
syntax.ss
|
||||
|
|
10
s/syntax.ss
10
s/syntax.ss
|
@ -4071,7 +4071,7 @@
|
|||
; (and <sub-version ref>*)
|
||||
; (or <sub-version ref>*)
|
||||
; (not <sub-version ref>)
|
||||
(define (determine-module-imports what mid tid)
|
||||
(define (determine-module-imports what who mid tid)
|
||||
(let ([binding (lookup (id->label mid empty-wrap) r)])
|
||||
(case (binding-type binding)
|
||||
[($module)
|
||||
|
@ -4087,7 +4087,7 @@
|
|||
(values mid tid
|
||||
(make-import-interface x
|
||||
(diff-marks (id-marks tid) (interface-marks (get-indirect-interface x))))))]
|
||||
[else (syntax-error mid "unknown module")])))
|
||||
[else (syntax-error who (format "unknown ~a" what))])))
|
||||
(define (impset x)
|
||||
(syntax-case x ()
|
||||
[(?only *x id ...)
|
||||
|
@ -4222,13 +4222,13 @@
|
|||
[else (f (cdr imps) o.n* (cons a new-imps))]))))))))]
|
||||
[mid
|
||||
(and (not std?) (id? #'mid))
|
||||
(determine-module-imports "module" #'mid #'mid)]
|
||||
(determine-module-imports "module" #'mid #'mid #'mid)]
|
||||
[(?library-reference lr)
|
||||
(sym-kwd? ?library-reference library-reference)
|
||||
(let-values ([(mid tid) (lookup-library #'lr)])
|
||||
(determine-module-imports "library" mid tid))]
|
||||
(determine-module-imports "library" #'lr mid tid))]
|
||||
[lr (let-values ([(mid tid) (lookup-library #'lr)])
|
||||
(determine-module-imports "library" mid tid))]))
|
||||
(determine-module-imports "library" #'lr mid tid))]))
|
||||
(syntax-case impspec (for)
|
||||
[(?for *x level ...)
|
||||
(sym-kwd? ?for for)
|
||||
|
|
Loading…
Reference in New Issue
Block a user