add missing defaults to calls to syntax-local-value
This commit is contained in:
parent
60c1bc6638
commit
ca9e8d742f
|
@ -745,10 +745,10 @@
|
||||||
(define (add-struct-clause-to-struct-id-mapping a parent flds/stx)
|
(define (add-struct-clause-to-struct-id-mapping a parent flds/stx)
|
||||||
(define flds (syntax->list flds/stx))
|
(define flds (syntax->list flds/stx))
|
||||||
(when (and (identifier? a)
|
(when (and (identifier? a)
|
||||||
(struct-info? (syntax-local-value a))
|
(struct-info? (syntax-local-value a (λ () #f)))
|
||||||
(or (not parent)
|
(or (not parent)
|
||||||
(and (identifier? parent)
|
(and (identifier? parent)
|
||||||
(struct-info? (syntax-local-value parent))))
|
(struct-info? (syntax-local-value parent (λ () #f)))))
|
||||||
flds
|
flds
|
||||||
(andmap identifier? flds))
|
(andmap identifier? flds))
|
||||||
(free-identifier-mapping-put!
|
(free-identifier-mapping-put!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user