Skip to main content

Module dump

Module dump 

Source
Expand description

A deterministic, human readable dump of the AST.

Used by the snapshot tests and handy when debugging the parser. Source ranges are deliberately left out: they would drown the interesting structure, and span behaviour is covered by its own tests.

Functionsยง

dump_expr
Renders a single expression (useful for focused tests).
dump_translation_unit
Renders a whole translation unit.
type_to_string
Renders a type the way the dump does.