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

Source from the content-addressed store, hash-verified

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

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