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

Method next_char

crates/ruff_python_parser/src/string.rs:145–149  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

143
144 #[inline]
145 fn next_char(&mut self) -> Option<char> {
146 self.source[self.cursor..].chars().next().inspect(|c| {
147 self.cursor += c.len_utf8();
148 })
149 }
150
151 #[inline]
152 fn peek_byte(&self) -> Option<u8> {

Callers 3

parse_unicode_literalMethod · 0.80
parse_unicode_nameMethod · 0.80
parse_escaped_charMethod · 0.80

Calls 4

len_utf8Method · 0.80
inspectMethod · 0.45
nextMethod · 0.45
charsMethod · 0.45

Tested by

no test coverage detected