Skip to content
fabrio-bom: aligns the versions of all published Fabrio modules.
fabrio-codegen: the new code generator, built around an intermediate representation.
ContractFrontend.load reads a contract (format 1.0.0, also over several files) into a ContractIr
with every reference resolved. An invalid contract throws a ContractLoadException with its
diagnostics.
Pipeline runs a contract through checks, passes and emitters and returns a PipelineResult with the
generated files. A Check rejects a contract Fabrio cannot generate; every check runs, so a rejected
contract comes back with all its errors, each a GenerationDiagnostic with the check and the file and
line of the contract element, also in a fragment. After an error of a check no pass runs; after an error
of a pass no later pass runs. A rejected run produces no files.
- Extension points:
Check, Pass, Emitter and Contributions (typed, keyed by ContributionKey).
FabrioOptions reads the generator options (packages, name suffixes and base path per API source,
contractPackage, columnsPackage, authored sources); Pipeline.fabrio(options) builds Fabrio’s
pipeline with them. It has no passes or emitters yet, so it generates nothing.