(&mut self, line: u32, message: &str)
| 15 | } |
| 16 | |
| 17 | pub fn error_with_line(&mut self, line: u32, message: &str) { |
| 18 | if self.panic_mode { |
| 19 | return; |
| 20 | } |
| 21 | self.panic_mode = true; |
| 22 | self.had_error = true; |
| 23 | eprintln!("[line {}] Error: {}", line, message); |
| 24 | } |
| 25 | |
| 26 | pub fn error_at(&mut self, token: Token<'_>, message: &str) { |
| 27 | if self.panic_mode { |
no outgoing calls
no test coverage detected