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

Method bump_float

crates/ruff_python_parser/src/parser/mod.rs:424–429  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

422 }
423
424 fn bump_float(&mut self) -> f64 {
425 let value = f64::from_str(&strip_underscores(self.current_token_text()))
426 .expect("lexer validated float literal");
427 self.bump(TokenKind::Float);
428 value
429 }
430
431 fn bump_complex(&mut self) -> (f64, f64) {
432 let text = self.current_token_text();

Callers 2

parse_atomMethod · 0.80

Calls 4

strip_underscoresFunction · 0.85
expectMethod · 0.80
current_token_textMethod · 0.80
bumpMethod · 0.45

Tested by

no test coverage detected