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

Method skip_bytes

crates/sith_python_parser/src/string.rs:67–71  ·  view source on GitHub ↗
(&mut self, bytes: usize)

Source from the content-addressed store, hash-verified

65
66 #[inline]
67 fn skip_bytes(&mut self, bytes: usize) -> &str {
68 let skipped_str = &self.source[self.cursor..self.cursor + bytes];
69 self.cursor += bytes;
70 skipped_str
71 }
72
73 /// Returns the current position of the parser considering the offset.
74 #[inline]

Callers 4

parse_unicode_nameMethod · 0.45
parse_fstring_middleMethod · 0.45
parse_bytesMethod · 0.45
parse_stringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected