Set the `SourceLoc` for code from this offset until the offset at the next call to `end_srcloc()`. Returns the current [CodeOffset] and [RelSourceLoc].
(&mut self, loc: RelSourceLoc)
| 1793 | /// next call to `end_srcloc()`. |
| 1794 | /// Returns the current [CodeOffset] and [RelSourceLoc]. |
| 1795 | pub fn start_srcloc(&mut self, loc: RelSourceLoc) -> (CodeOffset, RelSourceLoc) { |
| 1796 | let cur = (self.cur_offset(), loc); |
| 1797 | self.cur_srcloc = Some(cur); |
| 1798 | cur |
| 1799 | } |
| 1800 | |
| 1801 | /// Mark the end of the `SourceLoc` segment started at the last |
| 1802 | /// `start_srcloc()` call. |
no test coverage detected