Skip to content

Commit 972e88f

Browse files
committed
Propagate a syntax location when creating core structs.
1 parent 7c46e05 commit 972e88f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

typed-racket-lib/typed-racket/rep/rep-utils.rkt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,8 @@
611611
#'(begin)
612612
#`(provide #,@non-constr-li)))
613613
#'(constr-provide nonconstr-provide)])]
614-
[struct-def #'(struct var.name parent ... (flds.ids ...)
614+
[struct-def (syntax/loc #'var.name
615+
(struct var.name parent ... (flds.ids ...)
615616
maybe-transparent ...
616617
#:constructor-name constructor-name
617618
#:property prop:uid uid-id
@@ -625,7 +626,7 @@
625626
Rep-free-idxs-def
626627
Rep-for-each-def
627628
Rep-fmap-def]
628-
extra-defs ...)])
629+
extra-defs ...))])
629630
;; - - - - - - - - - - - - - - -
630631
;; macro output
631632
;; - - - - - - - - - - - - - - -

0 commit comments

Comments
 (0)