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

Method recursion_recovery_expr

crates/ruff_python_parser/src/parser/expression.rs:387–397  ·  view source on GitHub ↗

The standard expression-recovery node returned when the recursion limit is exceeded: an empty `Name` with the `Invalid` context.

(&mut self)

Source from the content-addressed store, hash-verified

385 /// The standard expression-recovery node returned when the recursion
386 /// limit is exceeded: an empty `Name` with the `Invalid` context.
387 fn recursion_recovery_expr(&mut self) -> ParsedExpr {
388 ParsedExpr {
389 expr: Expr::Name(ast::ExprName {
390 range: self.missing_node_range(),
391 id: Name::empty(),
392 ctx: ExprContext::Invalid,
393 node_index: AtomicNodeIndex::NONE,
394 }),
395 is_parenthesized: false,
396 }
397 }
398
399 fn parse_lhs_expression_inner(
400 &mut self,

Calls 3

NameClass · 0.85
missing_node_rangeMethod · 0.80
emptyFunction · 0.50

Tested by

no test coverage detected