MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / peek

Method peek

crates/sith_python_parser/src/parser/mod.rs:292–294  ·  view source on GitHub ↗

Returns the next token kind without consuming it.

(&mut self)

Source from the content-addressed store, hash-verified

290
291 /// Returns the next token kind without consuming it.
292 fn peek(&mut self) -> TokenKind {
293 self.tokens.peek()
294 }
295
296 /// Returns the next two token kinds without consuming it.
297 fn peek2(&mut self) -> (TokenKind, TokenKind) {

Calls

no outgoing calls

Tested by

no test coverage detected