MCPcopy Create free account
hub / github.com/csskit/csskit / checkpoint

Method checkpoint

crates/css_parse/src/parser.rs:259–271  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

257
258 #[inline]
259 pub fn checkpoint(&self) -> ParserCheckpoint<I> {
260 ParserCheckpoint {
261 cursor: self.buffer[self.buffer_index],
262 errors_pos: self.errors.len() as u8,
263 trivia_pos: self.trivia.len() as u16,
264 iter: self.cursor_iter.clone(),
265 buffer: self.buffer,
266 buffer_index: self.buffer_index,
267 skip: self.skip,
268 stop: self.stop,
269 state: self.state,
270 }
271 }
272
273 #[inline]
274 pub fn next_is_stop(&self) -> bool {

Callers 8

peek_and_nextFunction · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
try_parseMethod · 0.45
parse_rule_variantsMethod · 0.45

Calls 2

cloneMethod · 0.80
lenMethod · 0.45

Tested by 2

peek_and_nextFunction · 0.36