xirang-kernel 0.2.2

Registry, transaction, contracts, grafts, and diagnostics for XiRang
Documentation
//! Parser shared by build-time checks and live authoring.
//! 构建期检查与实时编辑共用的注册面解析器。
//!
//! Two grammars live here: the registration-face parser in [`face`] and the
//! host-entry declarations in [`entries`]. The module tree mirrors that split.
//! 这里有两种语法:位于 [`face`] 的注册面解析器,以及位于 [`entries`] 的宿主入口声明。
//! 模块树与这一分工一致。

mod literal_value;
#[path = "native_face.rs"]
mod native_face;
pub use native_face::{
    catalog_reference, contract_paths, has_face_attribute, native_face_fields, render_native_face,
};

#[path = "face.rs"]
pub mod face;
pub use face::*;

#[path = "face_region.rs"]
pub mod face_region;
pub use face_region::replace_face_region;
#[path = "entries.rs"]
pub mod entries;
pub use entries::*;
#[path = "nesting.rs"]
pub(crate) mod nesting;
#[path = "reference_scan.rs"]
pub(crate) mod reference_scan;

// The module stays crate-private; the one function other crates need is
// re-exported so the workspace keeps a single nesting measurement.
// 模块保持 crate 私有;其他 crate 需要的那一个函数在此重导出,使工作区只保留一份嵌套度量。
pub use nesting::guard_nesting;

#[cfg(test)]
#[path = "deep_input_tests.rs"]
mod deep_input_tests;

#[path = "imports.rs"]
mod imports;

#[path = "text_edit.rs"]
pub(crate) mod text_edit;
pub use text_edit::{
    ReferencePlan, TextEdit, apply_text_edits, apply_text_edits_checked, check_text_edits,
};

#[path = "reference_rewrite.rs"]
mod reference_rewrite;
pub use reference_rewrite::{
    ModuleMove, PathContext, plan_reference_rewrites, plan_reference_rewrites_in,
};

#[path = "include_rewrite.rs"]
mod include_rewrite;
pub use include_rewrite::plan_include_rewrites;