Function hir_expand::map_node_range_up

source ยท
pub fn map_node_range_up(
    db: &dyn ExpandDatabase,
    exp_map: &ExpansionSpanMap,
    range: TextRange,
) -> Option<(FileRange, SyntaxContextId)>
Expand description

Maps up the text range out of the expansion hierarchy back into the original file its from.

this will return None if any anchors or syntax contexts differ.