fn scope_metadata_for_loc(&self, scope_id: mir::VisibilityScope, pos: BytePos)
                               -> llvm::debuginfo::DIScope {
        let scope_metadata = self.scopes[scope_id].scope_metadata;
        if pos < self.scopes[scope_id].file_start_pos ||
           pos >= self.scopes[scope_id].file_end_pos {
            let cm = self.fcx.ccx.sess().codemap();
            debuginfo::extend_scope_to_file(self.fcx.ccx,
                                            scope_metadata,
                                            &cm.lookup_char_pos(pos).file)
        } else {
            scope_metadata
        }
    }
// DILocations inherit source file name from the parent DIScope.  Due to macro expansions
// it may so happen that the current span belongs to a different file than the DIScope
// corresponding to span's containing visibility scope.  If so, we need to create a DIScope
// "extension" into that file.
DILocations inherit source file name from the parent DIScope.  Due to macro expansions
it may so happen that the current span belongs to a different file than the DIScope
corresponding to span's containing visibility scope.  If so, we need to create a DIScope
"extension" into that file.
DILocations inherit source file name from the parent DIScope . Due to macro expansions it may so happen that the current span belongs to a different file than the DIScope corresponding to span ' s containing visibility scope . If so we need to create a DIScope " extension " into that file .
fn scope_metadata_for_loc(&self, scope_id: mir::VisibilityScope, pos: BytePos)
                               -> llvm::debuginfo::DIScope {
        let scope_metadata = self.scopes[scope_id].scope_metadata;
        if pos < self.scopes[scope_id].file_start_pos ||
           pos >= self.scopes[scope_id].file_end_pos {
            let cm = self.fcx.ccx.sess().codemap();
            debuginfo::extend_scope_to_file(self.fcx.ccx,
                                            scope_metadata,
                                            &cm.lookup_char_pos(pos).file)
        } else {
            scope_metadata
        }
    }
fn scope_metadata_for_loc ( & self , scope_id : mir :: VisibilityScope , pos : BytePos ) -> llvm :: debuginfo :: DIScope { let scope_metadata = self . scopes [ scope_id ] . scope_metadata ; if pos < self . scopes [ scope_id ] . file_start_pos || pos >= self . scopes [ scope_id ] . file_end_pos { let cm = self . fcx . ccx . sess ( ) . codemap ( ) ; debuginfo :: extend_scope_to_file ( self . fcx . ccx , scope_metadata , & cm . lookup_char_pos ( pos ) . file ) } else { scope_metadata } }
DILocations inherit source file name from the parent DIScope.
DILocations inherit source file name from the parent DIScope .
&self
scope_id
mir::VisibilityScope
pos
BytePos
&self
scope_id
mir::VisibilityScope
pos
BytePos