Function ide_db::syntax_helpers::prettify_macro_expansion
pub fn prettify_macro_expansion(
db: &dyn ExpandDatabase,
syn: SyntaxNode<RustLanguage>,
span_map: &SpanMap<SyntaxContextId>,
target_crate_id: Idx<CrateData>,
) -> SyntaxNode<RustLanguage>
Expand description
Inserts whitespace and replaces $crate
in macro expansions.