syntax-source-module: use second argument

The implementation still lacks a way to find the original source name,
though, in case of a ".ss" to ".rkt" conversion.
This commit is contained in:
Matthew Flatt 2018-02-26 15:30:04 -07:00
parent 014441bceb
commit 62b7ff6f84
2 changed files with 1235 additions and 1225 deletions

View File

@ -302,7 +302,10 @@
(define-values (path base) (module-path-index-split from-mpi))
(and (not path)
(module-path-index-resolved from-mpi)
(apply-syntax-shifts from-mpi (syntax-mpi-shifts s)))))
(let ([mpi (apply-syntax-shifts from-mpi (syntax-mpi-shifts s))])
(if source?
(resolved-module-path-name (module-path-index-resolve mpi #f))
mpi)))))
(define (identifier-prune-to-source-module id)
(unless (identifier? id)

File diff suppressed because it is too large Load Diff