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

Method second

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

Peeks the second 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

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.
48 pub(super) fn second(&self) -> char {
49 let mut chars = self.chars.clone();
50 chars.next();
51 chars.next().unwrap_or(EOF_CHAR)
52 }
53
54 /// Returns the remaining text to lex.
55 ///

Callers 4

lex_identifierMethod · 0.80
radix_runMethod · 0.80

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected