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

Method scan_char

cranelift/reader/src/lexer.rs:206–211  ·  view source on GitHub ↗

Scan a single-char token.

(&mut self, tok: Token<'a>)

Source from the content-addressed store, hash-verified

204
205 // Scan a single-char token.
206 fn scan_char(&mut self, tok: Token<'a>) -> Result<LocatedToken<'a>, LocatedError> {
207 assert_ne!(self.lookahead, None);
208 let loc = self.loc();
209 self.next_ch();
210 token(tok, loc)
211 }
212
213 // Scan a multi-char token.
214 fn scan_chars(

Callers 1

nextMethod · 0.80

Calls 3

tokenFunction · 0.85
locMethod · 0.80
next_chMethod · 0.80

Tested by

no test coverage detected