MCPcopy Index your code
hub / github.com/endbasic/endbasic / consume_peeked

Method consume_peeked

core/src/lexer.rs:752–755  ·  view source on GitHub ↗

Reads the previously-peeked token. Because `peek` reports read errors, this assumes that the caller already handled those errors and is thus not going to call this when an error is present.

(&mut self)

Source from the content-addressed store, hash-verified

750 /// Because `peek` reports read errors, this assumes that the caller already handled those
751 /// errors and is thus not going to call this when an error is present.
752 pub fn consume_peeked(&mut self) -> TokenSpan {
753 assert!(self.peeked.is_some());
754 self.peeked.take().unwrap()
755 }
756
757 /// Peeks the upcoming token.
758 ///

Callers 15

expect_and_consumeMethod · 0.80
parse_untilMethod · 0.80
parse_builtin_callMethod · 0.80
parse_dataMethod · 0.80
parse_dim_asMethod · 0.80
parse_dimMethod · 0.80
parse_do_guardMethod · 0.80
reset_doMethod · 0.80
parse_exitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected