mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +02:00
Scan closure free variables
This commit is contained in:
parent
80ad85883b
commit
d36f0aeb64
1 changed files with 2 additions and 1 deletions
|
@ -2109,7 +2109,8 @@
|
||||||
((tagged-list? '%closure exp)
|
((tagged-list? '%closure exp)
|
||||||
(let* ((lam (closure->lam exp))
|
(let* ((lam (closure->lam exp))
|
||||||
(body (car (ast:lambda-body lam))))
|
(body (car (ast:lambda-body lam))))
|
||||||
(scan body)))
|
(scan body)
|
||||||
|
(for-each scan (closure->fv exp))))
|
||||||
;; Global definition
|
;; Global definition
|
||||||
((define? exp)
|
((define? exp)
|
||||||
(scan (car (define->exp exp))))
|
(scan (car (define->exp exp))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue