/// Computes the id range for a single fn body, ignoring nested items.
Computes the id range for a single fn body, ignoring nested items.
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
{
    let mut visitor = IdRangeComputingVisitor::new();
    let mut id_visitor = IdVisitor {
        operation: &mut visitor,
        pass_through_items: false,
        visited_outermost: false,
    };
    id_visitor.visit_fn(fk, decl, body, sp, id);
    id_visitor.operation.result
}
pub fn compute_id_range_for_fn_body ( fk : FnKind , decl : & FnDecl , body : & Block , sp : Span , id : NodeId ) -> IdRange { let mut visitor = IdRangeComputingVisitor :: new ( ) ; let mut id_visitor = IdVisitor { operation : & mut visitor , pass_through_items : false , visited_outermost : false , } ; id_visitor . visit_fn ( fk , decl , body , sp , id ) ; id_visitor . operation . result }
Computes the id range for a single fn body, ignoring nested items.
Computes the id range for a single fn body ignoring nested items .
fk
FnKind
decl
&FnDecl
body
&Block
sp
Span
id
NodeId