pub fn format_module(module: ditto_cst::Module) -> String {
    dprint_core::formatting::format(
        || module::gen_module(module),
        dprint_core::formatting::PrintOptions {
            // NOTE these _aren't_ configurable!
            // Nobody needs a configurable formatter...
            // "Gofmt's style is no one's favorite, yet gofmt is everyone's favorite" — Rob Pike.
            indent_width: INDENT_WIDTH,
            max_width: MAX_WIDTH,
            use_tabs: false, // nah
            new_line_text: NEWLINE,
        },
    )
}
/// Pretty-print a CST module.
Pretty-print a CST module.
Pretty - print a CST module .
pub fn format_module(module: ditto_cst::Module) -> String {
    dprint_core::formatting::format(
        || module::gen_module(module),
        dprint_core::formatting::PrintOptions {
            // NOTE these _aren't_ configurable!
            // Nobody needs a configurable formatter...
            // "Gofmt's style is no one's favorite, yet gofmt is everyone's favorite" — Rob Pike.
            indent_width: INDENT_WIDTH,
            max_width: MAX_WIDTH,
            use_tabs: false, // nah
            new_line_text: NEWLINE,
        },
    )
}
pub fn format_module ( module : ditto_cst :: Module ) -> String { dprint_core :: formatting :: format ( | | module :: gen_module ( module ) , dprint_core :: formatting :: PrintOptions { // NOTE these _aren't_ configurable! // Nobody needs a configurable formatter... // "Gofmt's style is no one's favorite, yet gofmt is everyone's favorite" — Rob Pike. indent_width : INDENT_WIDTH , max_width : MAX_WIDTH , use_tabs : false , // nah new_line_text : NEWLINE , } , ) }
Pretty-print a CST module.
Pretty - print a CST module .
module
ditto_cst::Module
module
ditto_cst::Module