adjust syntax-set
to use syntax-local-identifier-as-binding
This commit is contained in:
parent
746e8ff1fb
commit
f540a6c108
|
@ -69,12 +69,16 @@
|
|||
[def-ids (apply append (map (lambda (defn)
|
||||
(syntax-case defn ()
|
||||
[(_ (id ...) expr)
|
||||
(syntax->list (syntax (id ...)))]))
|
||||
(map
|
||||
syntax-local-identifier-as-binding
|
||||
(syntax->list (syntax (id ...))))]))
|
||||
defns))]
|
||||
[val-ids (apply append (map (lambda (defn)
|
||||
(syntax-case defn (define-values)
|
||||
[(define-values (id ...) expr)
|
||||
(syntax->list (syntax (id ...)))]
|
||||
(map
|
||||
syntax-local-identifier-as-binding
|
||||
(syntax->list (syntax (id ...))))]
|
||||
[_else null]))
|
||||
defns))])
|
||||
(let ([dup (check-duplicate-identifier def-ids)])
|
||||
|
|
Loading…
Reference in New Issue
Block a user