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

Method node_start

crates/ruff_python_parser/src/parser/mod.rs:317–319  ·  view source on GitHub ↗

Returns the start position for a node that starts at the current token.

(&self)

Source from the content-addressed store, hash-verified

315
316 /// Returns the start position for a node that starts at the current token.
317 fn node_start(&self) -> TextSize {
318 self.current_token_range().start()
319 }
320
321 fn node_range(&self, start: TextSize) -> TextRange {
322 // It's possible during error recovery that the parsing didn't consume any tokens. In that

Calls 2

current_token_rangeMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected