Skip to main content

Module preprocessor

Module preprocessor 

Source

Modules§

expand
include
macro_def
source_map

Structs§

FsFileResolver
File resolver that reads from the real filesystem.
MockFileResolver
In-memory file resolver for testing
PreprocessFailure
Returned on preprocessing failure: errors + the file registry (so the caller can still render diagnostics against original files).
PreprocessResult
Result of preprocessing: expanded source text + a source map for diagnostics
PreprocessorError
A preprocessor error paired with its source origin.

Traits§

FileResolver
Trait for resolving .include file paths to their contents. Abstracted as a trait so tests can use an in-memory mock.

Functions§

preprocess
Run the full preprocessor pipeline: