docs(frontend): explain parsing entry points and source diagnostics
This commit is contained in:
@@ -27,7 +27,7 @@ pub struct CompileOptions {
|
||||
|
||||
/// 宿主及 compiler 集成测试的源码编译入口:按指定模式解析,再校验 AST、解析名称并生成模板。
|
||||
/// source 提供文件身份与原始文本;mode 决定模块、表达式或交互根;options 声明额外宿主名称。
|
||||
/// 解析错误已有源码诊断;后续编译错误在这里附加同一源码的位置和片段,成功不执行任何 VM 指令。
|
||||
/// 解析错误已有源码诊断;后续编译错误在这里附加同一源码的来源和行列位置,成功不执行任何 VM 指令。
|
||||
pub fn compile_source(
|
||||
source: &SourceUnit,
|
||||
mode: ParseMode,
|
||||
|
||||
Reference in New Issue
Block a user