fn scope_metadata(fcx: &FunctionContext,
                  node_id: ast::NodeId,
                  span: Span)
               -> DIScope {
    let scope_map = &fcx.debug_context.get_ref(fcx.ccx, span).scope_map;

    match scope_map.find_copy(&node_id) {
        Some(scope_metadata) => scope_metadata,
        None => {
            let node = fcx.ccx.tcx.items.get_copy(&node_id);

            fcx.ccx.sess.span_bug(span,
                fmt!("debuginfo: Could not find scope info for node %?", node));
        }
    }
}
/// Finds the scope metadata node for the given AST node.
Finds the scope metadata node for the given AST node.
Finds the scope metadata node for the given AST node .
fn scope_metadata(fcx: &FunctionContext,
                  node_id: ast::NodeId,
                  span: Span)
               -> DIScope {
    let scope_map = &fcx.debug_context.get_ref(fcx.ccx, span).scope_map;
    match scope_map.find_copy(&node_id) {
        Some(scope_metadata) => scope_metadata,
        None => {
            let node = fcx.ccx.tcx.items.get_copy(&node_id);
            fcx.ccx.sess.span_bug(span,
                fmt!("debuginfo: Could not find scope info for node %?", node));
        }
    }
}
fn scope_metadata ( fcx : & FunctionContext , node_id : ast :: NodeId , span : Span ) -> DIScope { let scope_map = & fcx . debug_context . get_ref ( fcx . ccx , span ) . scope_map ; match scope_map . find_copy ( & node_id ) { Some ( scope_metadata ) => scope_metadata , None => { let node = fcx . ccx . tcx . items . get_copy ( & node_id ) ; fcx . ccx . sess . span_bug ( span , fmt ! ( " " node ) ) ; } } }
Finds the scope metadata node for the given AST node.
Finds the scope metadata node for the given AST node .
fcx
&FunctionContext
node_id
ast::NodeId
span
Span
fcx
&FunctionContext
node_id
ast::NodeId
span
Span