docs: 添加 Rustdoc 注释
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
//! 解构绑定/赋值 emit:数组与对象 pattern 的绑定初始化、rest 收集与解构赋值。
|
||||
//! 函数:`emit_bind_target`、`emit_binding_pattern`、`emit_array_binding`、
|
||||
//! `emit_object_binding`、`emit_assign_target` 等。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_ir::inst::Inst;
|
||||
use oxide_ir::operand::Operand;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
//! 可选链(`?.`)emit:短路守卫、链式成员访问/调用与逻辑赋值短路测试。
|
||||
//! 函数:`emit_chainable_expression`、`emit_optional_guard`、`emit_chain_call` 等。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_ir::inst::Inst;
|
||||
use oxide_ir::operand::{LabelId, Operand};
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! 类字段初始化 emit:公有/私有实例字段与私有方法的实例化初始化。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_ir::inst::Inst;
|
||||
use oxide_ir::operand::Operand;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
//! 类属性键/私有名 emit:私有名 id 分配、类字段键寄存器与 undefined 常量。
|
||||
//! 函数:`private_name_id`、`emit_private_id_reg`、`emit_class_key_reg` 等。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_ir::inst::Inst;
|
||||
use oxide_ir::operand::Operand;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! 跨语法域共享的 emit 辅助:解构绑定、可选链、类字段初始化、类属性键。
|
||||
|
||||
pub mod binding;
|
||||
pub mod chain;
|
||||
pub mod class_field;
|
||||
|
||||
Reference in New Issue
Block a user