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
+6
View File
@@ -1,5 +1,11 @@
//! 解析错误类型。
//!
//! [`OxideError`] 把 oxc 的 `OxcDiagnostic` 归一化为引擎可消费的
//! 消息 + 字节区间,供 `parse` 返回错误列表。
use std::fmt;
/// 一条解析错误:消息与出错源码区间(`(start, end)` 字节偏移)。
#[derive(Debug, Clone)]
pub struct OxideError {
pub message: String,