docs: 添加 Rustdoc 注释

This commit is contained in:
2026-08-05 21:46:47 +08:00
parent 7c8f19f61a
commit 263fd255b6
158 changed files with 1440 additions and 15 deletions
@@ -1,3 +1,5 @@
//! do-while 语句 emit:`emit_do_while_statement` 先执行体后测条件。
use crate::{CompileCtx, Emitter};
use oxide_ir::inst::Inst;
use oxide_parser::Statement;
@@ -1,3 +1,5 @@
//! for 语句 emit:`emit_for_statement` 含 init/test/update 三段与循环跳转。
use crate::{CompileCtx, Emitter};
use oxide_ir::inst::Inst;
use oxide_ir::operand::Operand;
@@ -1,3 +1,5 @@
//! for-in 语句 emit:`emit_for_in_statement` 遍历可枚举属性名。
use crate::{CompileCtx, Emitter};
use oxide_ir::inst::Inst;
use oxide_ir::operand::Operand;
@@ -1,3 +1,5 @@
//! for-of 语句 emit:`emit_for_of_statement` 迭代器协议遍历。
use crate::{CompileCtx, Emitter};
use oxide_ir::inst::Inst;
use oxide_ir::operand::Operand;
@@ -1,3 +1,5 @@
//! 迭代语句域:while/do-while/for/for-in/for-of 的分发与子模块聚合。
use crate::{CompileCtx, Emitter};
use oxide_parser::Statement;
@@ -1,3 +1,5 @@
//! while 语句 emit:`emit_while_statement` 先测条件后执行体。
use crate::{CompileCtx, Emitter};
use oxide_ir::inst::Inst;
use oxide_parser::Statement;