hir_expand

Function prettify_macro_expansion

source
pub fn prettify_macro_expansion(
    db: &dyn ExpandDatabase,
    syn: SyntaxNode,
    span_map: &ExpansionSpanMap,
    target_crate_id: CrateId,
) -> SyntaxNode
Expand description

Inserts whitespace and replaces $crate in macro expansions.