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:632–643  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

630 }
631
632 fn parse_missing_identifier(&mut self) -> ast::Identifier {
633 self.add_error(
634 ParseErrorType::OtherError("Expected an identifier".into()),
635 self.current_token_range(),
636 );
637
638 ast::Identifier {
639 id: Name::empty(),
640 range: self.missing_node_range(),
641 node_index: AtomicNodeIndex::NONE,
642 }
643 }
644
645 /// Parses an atom.
646 ///

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