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

Source from the content-addressed store, hash-verified

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

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