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

Method bump_name

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

Source from the content-addressed store, hash-verified

393 }
394
395 fn bump_name(&mut self) -> Name {
396 let text = self.current_token_text();
397 let name = if !self.tokens.current_flags().is_non_ascii_name() {
398 Name::new(text)
399 } else {
400 normalize_name(text)
401 };
402 self.bump(TokenKind::Name);
403 name
404 }
405
406 fn bump_int(&mut self) -> Int {
407 let text = self.current_token_text();

Callers 2

Calls 5

normalize_nameFunction · 0.85
current_token_textMethod · 0.80
is_non_ascii_nameMethod · 0.80
current_flagsMethod · 0.45
bumpMethod · 0.45

Tested by

no test coverage detected