Function syntax::ast_util::compute_id_range_for_fn_body[src]
pub fn compute_id_range_for_fn_body(fk: &FnKind, decl: &FnDecl, body: &Block, sp: Span, id: NodeId) -> IdRange
Computes the id range for a single fn body, ignoring nested items.
pub fn compute_id_range_for_fn_body(fk: &FnKind, decl: &FnDecl, body: &Block, sp: Span, id: NodeId) -> IdRange
Computes the id range for a single fn body, ignoring nested items.
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).