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)
|
[def-ids (apply append (map (lambda (defn)
|
||||||
(syntax-case defn ()
|
(syntax-case defn ()
|
||||||
[(_ (id ...) expr)
|
[(_ (id ...) expr)
|
||||||
(syntax->list (syntax (id ...)))]))
|
(map
|
||||||
|
syntax-local-identifier-as-binding
|
||||||
|
(syntax->list (syntax (id ...))))]))
|
||||||
defns))]
|
defns))]
|
||||||
[val-ids (apply append (map (lambda (defn)
|
[val-ids (apply append (map (lambda (defn)
|
||||||
(syntax-case defn (define-values)
|
(syntax-case defn (define-values)
|
||||||
[(define-values (id ...) expr)
|
[(define-values (id ...) expr)
|
||||||
(syntax->list (syntax (id ...)))]
|
(map
|
||||||
|
syntax-local-identifier-as-binding
|
||||||
|
(syntax->list (syntax (id ...))))]
|
||||||
[_else null]))
|
[_else null]))
|
||||||
defns))])
|
defns))])
|
||||||
(let ([dup (check-duplicate-identifier def-ids)])
|
(let ([dup (check-duplicate-identifier def-ids)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user