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

Method parse_missing_identifier

crates/ruff_python_parser/src/parser/expression.rs:567–578  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

565 }
566
567 fn parse_missing_identifier(&mut self) -> ast::Identifier {
568 self.add_error(
569 ParseErrorType::OtherError("Expected an identifier".into()),
570 self.current_token_range(),
571 );
572
573 ast::Identifier {
574 id: Name::empty(),
575 range: self.missing_node_range(),
576 node_index: AtomicNodeIndex::NONE,
577 }
578 }
579
580 /// Parses an atom.
581 ///

Callers 2

parse_missing_nameMethod · 0.80

Calls 4

current_token_rangeMethod · 0.80
missing_node_rangeMethod · 0.80
emptyFunction · 0.50
add_errorMethod · 0.45

Tested by

no test coverage detected