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

Method consume

cranelift/reader/src/parser.rs:469–471  ·  view source on GitHub ↗

Consume the current lookahead token and return it.

(&mut self)

Source from the content-addressed store, hash-verified

467
468 // Consume the current lookahead token and return it.
469 fn consume(&mut self) -> Token<'a> {
470 self.lookahead.take().expect("No token to consume")
471 }
472
473 // Consume the whole line following the current lookahead token.
474 // Return the text of the line tail.

Callers 15

consume_lineMethod · 0.45
match_tokenMethod · 0.45
optionalMethod · 0.45
match_identifierMethod · 0.45
match_typeMethod · 0.45
match_ssMethod · 0.45
match_dssMethod · 0.45
match_dtMethod · 0.45
match_gvMethod · 0.45
match_fnMethod · 0.45
match_sigMethod · 0.45
match_constantMethod · 0.45

Calls 2

expectMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected