Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_next
Method · 0.80
match_pattern
Method · 0.80
Calls
1
peek
Method · 0.45
Tested by
no test coverage detected