MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / error

Function error

cranelift/reader/src/lexer.rs:91–96  ·  view source on GitHub ↗

Wrap up a `LexError` with the given location.

(error: LexError, loc: Location)

Source from the content-addressed store, hash-verified

89
90/// Wrap up a `LexError` with the given location.
91fn error<'a>(error: LexError, loc: Location) -> Result<LocatedToken<'a>, LocatedError> {
92 Err(LocatedError {
93 error,
94 location: loc,
95 })
96}
97
98/// Get the number of decimal digits at the end of `s`.
99fn trailing_digits(s: &str) -> usize {

Callers 3

scan_stringMethod · 0.85
nextMethod · 0.85
fmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected