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
+1
View File
@@ -1 +1,2 @@
//! 类编译核心预留模块(当前为空,为后续类相关公共状态预留位置)。
+4
View File
@@ -1,3 +1,7 @@
//! class 声明整体 emit:驱动头、原型、方法、字段各阶段,组装最终类对象。
//!
//! 函数:`emit_class`。
use crate::{CompileCtx, Emitter, FunctionBodyContext};
use oxide_ir::inst::Inst;
use oxide_ir::operand::Operand;
+2
View File
@@ -1,3 +1,5 @@
//! 类静态字段/元素 emit:`emit_class_static_elements`。
use crate::{CompileCtx, Emitter};
use oxide_ir::operand::Operand;
use oxide_parser::{ClassElement, PropertyKey};
+2
View File
@@ -1,3 +1,5 @@
//! 类头 emit:类名绑定、继承链(`extends`)设置,见 `emit_class_header`。
use crate::{CompileCtx, Emitter};
impl Emitter {
+3
View File
@@ -1,3 +1,6 @@
//! 类方法 emit:`emit_class_methods` 逐方法构造,`emit_class_method_function`
//! 负责单个方法函数体(含 `super` 与 home object)。
use crate::{CompileCtx, Emitter, FunctionBodyContext};
use oxide_ir::inst::Inst;
use oxide_ir::operand::Operand;
+2
View File
@@ -1,3 +1,5 @@
//! 类编译域:class 声明的整体 emit 拆分为头/原型/方法/字段等子模块。
pub mod core;
pub mod emit;
pub mod field;
+2
View File
@@ -1,3 +1,5 @@
//! 类原型对象构造:`emit_class_prototype` 建立 `Class.prototype` 与属性初始化。
use crate::{CompileCtx, Emitter};
use oxide_ir::inst::Inst;
use oxide_ir::operand::Operand;