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

Method skip_bytes

crates/ruff_python_parser/src/string.rs:113–117  ·  view source on GitHub ↗
(&mut self, bytes: usize)

Source from the content-addressed store, hash-verified

111
112 #[inline]
113 fn skip_bytes(&mut self, bytes: usize) -> &str {
114 let skipped_str = &self.source[self.cursor..self.cursor + bytes];
115 self.cursor += bytes;
116 skipped_str
117 }
118
119 /// Returns the current position of the parser considering the offset.
120 #[inline]

Callers 4

parse_unicode_nameMethod · 0.45
parse_bytesMethod · 0.45
parse_stringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected