orig_range_with_focus

Function orig_range_with_focus 

Source
fn orig_range_with_focus(
    db: &RootDatabase,
    hir_file: HirFileId,
    value: &SyntaxNode,
    name: Option<impl AstNode>,
) -> UpmappingResult<(FileRange, Option<TextRange>)>
Expand description

Returns the original range of the syntax node, and the range of the name mapped out of macro expansions May return two results if the mapped node originates from a macro definition in which case the second result is the creating macro call.