MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / peek_next

Method peek_next

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

Source from the content-addressed store, hash-verified

876 }
877
878 pub fn peek_next(&mut self) -> Option<Token<'a>> {
879 self.lexer.peek().copied()
880 }
881
882 pub fn check(&self, kind: TokenType) -> bool {
883 self.current.kind == kind

Callers 2

check_nextMethod · 0.80
match_patternMethod · 0.80

Calls 1

peekMethod · 0.45

Tested by

no test coverage detected