MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / next

Method next

aiscript-lexer/src/lib.rs:771–779  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

769 type Item = Token<'a>;
770
771 fn next(&mut self) -> Option<Self::Item> {
772 if self.is_eof {
773 None
774 } else {
775 let token = self.scan_token();
776 self.is_eof = token.kind == TokenType::Eof;
777 Some(token)
778 }
779 }
780}
781
782impl<'a> From<peakable::Peekable<Lexer<'a>>> for Lexer<'a> {

Callers 15

advanceMethod · 0.45
scan_numberMethod · 0.45
escape_stringMethod · 0.45
test_basic_fstringFunction · 0.45
test_empty_fstringFunction · 0.45

Calls 1

scan_tokenMethod · 0.80