mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 18:51:13 +08:00
docs: 添加 Rustdoc 注释
This commit is contained in:
@@ -1 +1,2 @@
|
||||
//! 类编译核心预留模块(当前为空,为后续类相关公共状态预留位置)。
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
//! class 声明整体 emit:驱动头、原型、方法、字段各阶段,组装最终类对象。
|
||||
//!
|
||||
//! 函数:`emit_class`。
|
||||
|
||||
use crate::{CompileCtx, Emitter, FunctionBodyContext};
|
||||
use oxide_ir::inst::Inst;
|
||||
use oxide_ir::operand::Operand;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! 类静态字段/元素 emit:`emit_class_static_elements`。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_ir::operand::Operand;
|
||||
use oxide_parser::{ClassElement, PropertyKey};
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! 类头 emit:类名绑定、继承链(`extends`)设置,见 `emit_class_header`。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
|
||||
impl Emitter {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! 类编译域:class 声明的整体 emit 拆分为头/原型/方法/字段等子模块。
|
||||
|
||||
pub mod core;
|
||||
pub mod emit;
|
||||
pub mod field;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! 类原型对象构造:`emit_class_prototype` 建立 `Class.prototype` 与属性初始化。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_ir::inst::Inst;
|
||||
use oxide_ir::operand::Operand;
|
||||
|
||||
Reference in New Issue
Block a user