Hook to handle source location mapping before visiting an operator.
(&mut self, offset: usize)
| 2305 | |
| 2306 | // Hook to handle source location mapping before visiting an operator. |
| 2307 | fn source_location_before_visit_op(&mut self, offset: usize) -> Result<()> { |
| 2308 | let loc = SourceLoc::new(offset as u32); |
| 2309 | let rel = self.source_loc_from(loc); |
| 2310 | self.source_location.current = self.masm.start_source_loc(rel)?; |
| 2311 | Ok(()) |
| 2312 | } |
| 2313 | |
| 2314 | // Hook to handle source location mapping after visiting an operator. |
| 2315 | fn source_location_after_visit_op(&mut self) -> Result<()> { |
no test coverage detected