print_crate in rustc_hir_pretty - Rust
Description: Requires you to pass an input filename and reader so that it can scan the input text for comments to copy forward.

Skip to main content

## print_crate

# Function print_crate

Source

    pub fn print_crate<'a>(
        sm: &'a SourceMap,
        krate: &Mod<'_>,
        filename: FileName,
        input: String,
        attrs: &'a dyn Fn(HirId) -> &'a [Attribute],
        ann: &'a dyn PpAnn,
    ) -> String

Expand description

Requires you to pass an input filename and reader so that it can scan the input text for comments to copy forward.