propagate some source locations for better error reporting
related to PR 14595
This commit is contained in:
parent
a973556261
commit
53d6fffe71
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user