MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / error_with_line

Method error_with_line

aiscript-lexer/src/error_reporter.rs:17–24  ·  view source on GitHub ↗
(&mut self, line: u32, message: &str)

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected