Expand description
Intermediate representation for factorio-rs.
Sources are grouped by role (ast, module, meta, opt, prune). The
historical crate-root module paths (expression, statement, …) remain
available as re-exports.
Re-exports§
pub use ast::block;pub use ast::enumeration;pub use ast::expression;pub use ast::function;pub use ast::literal;pub use ast::operator;pub use ast::scope;pub use ast::statement;pub use ast::structure;pub use meta::debug;pub use meta::origin;pub use meta::span;pub use module::locale;pub use module::stage;
Modules§
- ast
- Core IR node types (expressions, statements, types, and declarations).
- lint
- Transpile-time safety lints with stable identifiers for
Factorio.toml. - meta
- Source locations and debug metadata attached to IR nodes.
- module
- Compilation units: modules, Factorio stages, and locale payloads.
- opt
- prune
- Dead-code elimination for lowered IR modules.
- sourcemap_
remap - Remap
Statement::SourceOriginmarkers from expanded-crate line numbers onto the developer’s original.rspaths/lines (for DAP sourcemaps). - type