MCPcopy Create free account
hub / github.com/dfinity/ic-repl / error2

Function error2

src/token.rs:192–196  ·  view source on GitHub ↗
(err: E, span: Span)

Source from the content-addressed store, hash-verified

190
191pub(crate) type ParserError = ParseError<usize, Token, LexicalError>;
192pub fn error2<E: ToString>(err: E, span: Span) -> ParserError {
193 ParseError::User {
194 error: LexicalError::new(err, span),
195 }
196}
197
198impl Iterator for Tokenizer<'_> {
199 type Item = Result<(usize, Token, usize), LexicalError>;

Callers 2

runMethod · 0.85
pretty_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected