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

Method first

crates/sith_python_parser/src/lexer/cursor.rs:42–44  ·  view source on GitHub ↗

Peeks the next character from the input stream without consuming it. Returns [`EOF_CHAR`] if the position is past the end of the file.

(&self)

Source from the content-addressed store, hash-verified

40 /// Peeks the next character from the input stream without consuming it.
41 /// Returns [`EOF_CHAR`] if the position is past the end of the file.
42 pub(super) fn first(&self) -> char {
43 self.chars.clone().next().unwrap_or(EOF_CHAR)
44 }
45
46 /// Peeks the second character from the input stream without consuming it.
47 /// Returns [`EOF_CHAR`] if the position is past the end of the file.

Callers 15

eat_indentationMethod · 0.45
skip_whitespaceMethod · 0.45
lex_identifierMethod · 0.45
lex_stringMethod · 0.45
radix_runMethod · 0.45
next_byteMethod · 0.45
peek_byteMethod · 0.45
eat_charMethod · 0.45

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected