Skip to content

Commit 46c0026

Browse files
committed
Implement closure support for captured variables
Adds closure environment allocation, variable capture analysis, and code generation for accessing and storing captured variables in closures. Updates the compiler to prescan function bodies for captured variables, allocate and initialize closure environments, and handle closure function creation and invocation. Extends Flow and Function/Local classes to track closure-related metadata. Includes new tests for closure behavior.
1 parent 3daa41b commit 46c0026

File tree

7 files changed

+6084
-59
lines changed

7 files changed

+6084
-59
lines changed

0 commit comments

Comments
 (0)