propagate some source locations for better error reporting

related to PR 14595
This commit is contained in:
Robby Findler 2014-07-06 00:56:09 -05:00
parent a973556261
commit 53d6fffe71

View File

@ -145,10 +145,11 @@
(cons (syntax [res (func (quasidatum args))])
outer-bindings))
(values result-id (min depth max-depth)))
(loop (syntax (begin (mf-map func)))
(syntax/loc args-stx (args (... ...)))
(syntax (res (... ...)))
(sub1 args-depth)))))))))
(with-syntax ([dots (datum->syntax #'here '... arg-stx)])
(loop (syntax (begin (mf-map func)))
(syntax/loc args-stx (args dots))
(syntax (res dots))
(sub1 args-depth))))))))))
(define (rewrite/max-depth stx depth ellipsis-allowed? continuing-an-application?)
(syntax-case stx (unquote unquote-splicing in-hole hole)