Module unexpand

Source

Functionsยง

unexpand_into_body_span ๐Ÿ”’
Walks through the expansion ancestors of original_span to find a span that is contained in body_span and has the same [syntax context] as body_span.
unexpand_into_body_span_with_expn_kind ๐Ÿ”’
Walks through the expansion ancestors of original_span to find a span that is contained in body_span and has the same [syntax context] as body_span.
unexpand_into_body_span_with_prev ๐Ÿ”’
Walks through the expansion ancestors of original_span to find a span that is contained in body_span and has the same syntax context as body_span. The ancestor that was traversed just before the matching span (if any) is also returned.