MCPcopy Create free account
hub / github.com/astral-sh/ruff / peek_byte

Method peek_byte

crates/ruff_python_parser/src/string.rs:152–154  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

150
151 #[inline]
152 fn peek_byte(&self) -> Option<u8> {
153 self.source.as_bytes()[self.cursor..].first().copied()
154 }
155
156 fn parse_unicode_literal<const N: usize>(&mut self) -> Result<char, LexicalError> {
157 let mut value = 0;

Callers 4

parse_unicode_literalMethod · 0.80
parse_octetMethod · 0.80
parse_escaped_charMethod · 0.80

Calls 2

firstMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected