mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +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)
|
||||
(let* ((lam (closure->lam exp))
|
||||
(body (car (ast:lambda-body lam))))
|
||||
(scan body)))
|
||||
(scan body)
|
||||
(for-each scan (closure->fv exp))))
|
||||
;; Global definition
|
||||
((define? exp)
|
||||
(scan (car (define->exp exp))))
|
||||
|
|
Loading…
Add table
Reference in a new issue