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

Method error_at_value

aiscript-vm/src/compiler/codegen.rs:1820–1829  ·  view source on GitHub ↗
(&mut self, value: Value<'gc>, message: &str)

Source from the content-addressed store, hash-verified

1818 }
1819
1820 fn error_at_value(&mut self, value: Value<'gc>, message: &str) {
1821 if self.error_reporter.had_error {
1822 return;
1823 }
1824 self.error_reporter.had_error = true;
1825 eprintln!(
1826 "[line {}] Error at '{}': {}",
1827 self.current_line, value, message
1828 );
1829 }
1830
1831 fn error_at(&mut self, token: Token<'gc>, message: &str) {
1832 self.error_reporter.error_at(token, message);

Callers 1

make_constantMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected