pub fn note_syntax_error(src: &str, origin: ScriptOrigin, msg: &str, pos: u32)Expand description
Record that src, which node names origin, failed to parse with msg
at script-relative position pos (from parser::take_error_pos): the
text joins the source address space so the SyntaxError’s report can show
node’s arrow under the offending token.
The end of the underlined span comes from parser::take_error_end.