Crate cranelift_srcgen

Source
Expand description

A source code generator.

This crate contains generic helper routines and classes for generating source code.

Modules§

error
Defines an Error returned during source code generation.

Macros§

fmtln
A macro that simplifies the usage of the Formatter by allowing format strings.
loc
A macro for constructing a FileLocation at the current location.

Structs§

FileLocation
Record a source location; preferably, use loc directly.
Formatter
Collect source code to be written to a file and keep track of indentation.
Match
Match formatting class.

Enums§

Language
Identify the source code language a Formatter will emit.