mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 03:01:12 +08:00
feat: 捕获 cell 换键地基——绑定增 cell_idx 并解析点按绑定身份取索引
This commit is contained in:
@@ -449,7 +449,9 @@ impl Emitter {
|
||||
|
||||
// 闭包捕获分析(import 绑定名纳入 own_bindings,供嵌套函数 cell 捕获)。
|
||||
ctx.own_bindings = collect_own_binding_names(&[], body);
|
||||
ctx.captured_bindings = collect_captured_bindings(body, &[], &ctx.own_bindings);
|
||||
ctx.set_captured_bindings(collect_captured_bindings(body, &[], &ctx.own_bindings));
|
||||
// 模块顶层函数级绑定 cell 索引回填:预声明已完成,绑定已齐。
|
||||
ctx.backfill_captured_cell_idxs();
|
||||
|
||||
// —— 模块命名空间对象 ——
|
||||
let ns_reg = self.emit_module_call(ctx, "__moduleObject", &[])?;
|
||||
|
||||
Reference in New Issue
Block a user