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

Method consume_line

cranelift/reader/src/parser.rs:475–479  ·  view source on GitHub ↗

Consume the whole line following the current lookahead token. Return the text of the line tail.

(&mut self)

Source from the content-addressed store, hash-verified

473 // Consume the whole line following the current lookahead token.
474 // Return the text of the line tail.
475 fn consume_line(&mut self) -> &'a str {
476 let rest = self.lex.rest_of_line();
477 self.consume();
478 rest
479 }
480
481 // Get the current lookahead token, after making sure there is one.
482 fn token(&mut self) -> Option<Token<'a>> {

Callers 2

parse_test_commandsMethod · 0.80
parse_target_specsMethod · 0.80

Calls 2

rest_of_lineMethod · 0.80
consumeMethod · 0.45

Tested by

no test coverage detected