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

Method read_punctuation

atomic-core/src/diff/token/tokenizer.rs:488–496  ·  view source on GitHub ↗

Read a punctuation token.

(&mut self)

Source from the content-addressed store, hash-verified

486
487 /// Read a punctuation token.
488 fn read_punctuation(&mut self) -> Token<'a> {
489 let start = self.position;
490 self.advance();
491 Token::new(
492 &self.content[start..self.position],
493 TokenKind::Punctuation,
494 start,
495 )
496 }
497
498 /// Read any other single character.
499 fn read_other(&mut self) -> Token<'a> {

Callers 1

nextMethod · 0.80

Calls 1

advanceMethod · 0.45

Tested by

no test coverage detected