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

Method missing_node_range

crates/ruff_python_parser/src/parser/mod.rs:343–355  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

341 }
342
343 fn missing_node_range(&self) -> TextRange {
344 // TODO(dhruvmanila): This range depends on whether the missing node is
345 // on the leftmost or the rightmost of the expression. It's incorrect for
346 // the leftmost missing node because the range is outside the expression
347 // range. For example,
348 //
349 // ```python
350 // value = ** y
351 // # ^^^^ expression range
352 // # ^ last token end
353 // ```
354 TextRange::empty(self.prev_token_end)
355 }
356
357 /// Moves the parser to the next token.
358 fn do_bump(&mut self, kind: TokenKind) {

Callers 5

parse_decoratorsMethod · 0.80

Calls 1

emptyFunction · 0.50

Tested by

no test coverage detected