Crate code_gen

Source

Structs§

CodeBuffer
Responsible for buffering code.
EmptyLine
An empty line of code. (indent & line-ending)
ExpressionStatement
A statement that wraps an expression.
Literal
A literal expression.
Semi
A semicolon ended expression statement.
Source
Represents general source code.

Traits§

Expression
Code within a single line.
IsEmpty
An element that may be semantically empty.
Statement
Code that spans one or more lines.
WithName
An element with a name.
WithParams
An element with expression params.
WithStatements
An element with statements.