Propagate srcloc information in wrap-expr/c from syntax/contract (#1418)

This commit is contained in:
Alexis King 2016-09-12 15:06:57 -07:00 committed by Ryan Culpepper
parent a01cf359eb
commit 6e6056b9b8

View File

@ -56,12 +56,13 @@
#:source [source #f])
(let ([expr-name (or expr-name #'#f)]
[source (or source #'#f)])
#`(contract #,ctc-expr
(quasisyntax/loc expr
(contract #,ctc-expr
#,expr
#,positive
#,negative
#,expr-name
#,source)))
#,source))))
(define (get-source-expr source ctx)
(cond [(eq? source 'use-site)