mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
docs: 添加 Rustdoc 注释
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//! break/continue 语句 emit:解析标签与最近循环的跳转目标。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_ir::inst::Inst;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! 表达式语句 emit:`emit_expression_statement` 求值并(按需)丢弃结果。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_parser::Statement;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! 标签语句 emit:`emit_labeled_statement` 登记 break/continue 标签作用域。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_parser::Statement;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! 基本语句域:表达式语句/return/空语句的分发与子模块聚合。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_parser::Statement;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! return 语句 emit:`emit_return_statement` 求值返回值并生成返回指令。
|
||||
|
||||
use crate::{CompileCtx, Emitter};
|
||||
use oxide_ir::inst::Inst;
|
||||
use oxide_ir::operand::Operand;
|
||||
|
||||
Reference in New Issue
Block a user