Skip to main content

Module printer

Module printer 

Source
Expand description

Output buffer + trivia weaving for the formatter (ADR-0093).

Owns the indent state, resolves interned identifiers, and (Phase 4) weaves // line comments and blank lines back into the output by consulting a TriviaTable built over the raw source.

Structs§

Printer
Output buffer driven by the emit functions in crate::emit.

Constants§

INDENT_WIDTH
Width of one indent level, in spaces.