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

Method increment

crates/ruff_python_parser/src/parser/progress.rs:8–12  ·  view source on GitHub ↗

Increments the value of the token ID.

(&mut self)

Source from the content-addressed store, hash-verified

6impl TokenId {
7 /// Increments the value of the token ID.
8 pub(super) fn increment(&mut self) {
9 // It's fine to just wrap around because the main purpose is to check whether
10 // the previous token ID is different from the current token ID.
11 self.0 = self.0.wrapping_add(1);
12 }
13}
14
15/// Captures the progress of the parser and allows to test if the parsing is still making progress

Callers 1

do_bumpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected