docs: 添加 Rustdoc 注释

This commit is contained in:
爱特每羊队
2026-08-05 21:46:47 +08:00
parent bbdfca1a1c
commit f461235f04
158 changed files with 1440 additions and 15 deletions
+6
View File
@@ -1,3 +1,9 @@
//! 闭包捕获分析(AST 级,emit 前完成,时序无关)。
//!
//! 收集本函数绑定的名字(own_bindings)与被嵌套函数捕获的名字
//! (captured_bindings → cell_idx,按名排序稳定跨 run),为 MAKE_CELL /
//! CELL_GET / CELL_SET 与子函数 upvalue cell_idx 提供统一依据。
use std::collections::{BTreeMap, HashSet};
use oxide_bytecode::module::UpvalueCapture;