/// 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 .
pub fn scope_metadata(fcx: &FunctionContext,
                  node_id: ast::NodeId,
                  error_reporting_span: Span)
               -> DIScope {
    let scope_map = &fcx.debug_context
                        .get_ref(error_reporting_span)
                        .scope_map;
    match scope_map.borrow().get(&node_id).cloned() {
        Some(scope_metadata) => scope_metadata,
        None => {
            let node = fcx.ccx.tcx().map.get(node_id);
            span_bug!(error_reporting_span,
                      "debuginfo: Could not find scope info for node {:?}",
                      node);
        }
    }
}
pub fn scope_metadata ( fcx : & FunctionContext , node_id : ast :: NodeId , error_reporting_span : Span ) -> DIScope { let scope_map = & fcx . debug_context . get_ref ( error_reporting_span ) . scope_map ; match scope_map . borrow ( ) . get ( & node_id ) . cloned ( ) { Some ( scope_metadata ) => scope_metadata , None => { let node = fcx . ccx . tcx ( ) . map . get ( node_id ) ; span_bug ! ( error_reporting_span " " 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
error_reporting_span
Span