sway_ir

Module printer

Source
Expand description

Print (or serialize) IR to human and machine readable text.

This module implements a document based pretty-printer. A couple of 3rd party pretty printing crates were assessed but didn’t seem to work as well as this simple version, which is quite effective.

Structs§

ModulePrinterResult

Constants§

MODULE_PRINTER_NAME

Functions§

create_module_printer_pass
function_print
Print a function to stdout.
module_print
Print a module to stdout.
module_printer_pass
Pass to print a module to stdout.
to_string
Pretty-print a whole Context to a string.