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

Method peekable

core/src/lexer.rs:728–730  ·  view source on GitHub ↗

Returns a peekable adaptor for this lexer.

(self)

Source from the content-addressed store, hash-verified

726
727 /// Returns a peekable adaptor for this lexer.
728 pub fn peekable(self) -> PeekableLexer<'a> {
729 PeekableLexer { lexer: self, peeked: None }
730 }
731}
732
733/// A lexer wrapper that supports peeking at the next token without consuming it.

Callers 4

fromMethod · 0.80
test_peekable_lexerFunction · 0.80
compile_argsFunction · 0.80
describeMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_peekable_lexerFunction · 0.64