Expand description
Code generator trait and output types.
Structs§
- Generated
Code - Output from code generation — consistent across all targets.
- Output
File - A single generated output file.
- Source
Info - Metadata for a source file referenced by a
SourceMap. - Source
Map - Maps AIR source spans to generated code spans.
- Source
MapEntry - A single source-map entry linking an AIR span to a target span.
- Source
Mapping - A single pointwise mapping from a position in generated code to a position in the originating Bock source.
Traits§
- Code
Generator - The trait all per-target code generators implement.
Functions§
- module_
declares_ main_ fn - Returns true if the given AIR module declares a top-level function named
main. Used by the build pipeline to decide whether to append an entry-point invocation to the generated output of targets without a native main convention. - module_
main_ fn_ is_ async - Returns true if the given AIR module declares a top-level
async fn main. Used bygenerate_projectto select an async-aware entry invocation.