find_opt_node_in_file

Function find_opt_node_in_file 

Source
fn find_opt_node_in_file<N: AstNode>(
    syntax: &SyntaxNode,
    node: Option<N>,
) -> Option<N>
Expand description

Attempts to find node inside syntax via node’s text range. If the fake identifier has been inserted after this node or inside of this node use the _compensated version instead.