MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / advance

Method advance

atomic-core/src/diff/token/tokenizer.rs:186–190  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

184 /// Consume the current byte and advance position.
185 #[inline]
186 fn advance(&mut self) {
187 if self.position < self.content.len() {
188 self.position += 1;
189 }
190 }
191
192 /// Check if a byte is a word character (alphanumeric or underscore).
193 #[inline]

Callers 9

read_wordMethod · 0.45
read_whitespaceMethod · 0.45
read_newlineMethod · 0.45
read_operatorMethod · 0.45
read_numberMethod · 0.45
read_stringMethod · 0.45
read_commentMethod · 0.45
read_punctuationMethod · 0.45
read_otherMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected