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

Method node_start

crates/ruff_python_parser/src/parser/mod.rs:280–282  ·  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

278
279 /// Returns the start position for a node that starts at the current token.
280 fn node_start(&self) -> TextSize {
281 self.current_token_range().start()
282 }
283
284 fn node_range(&self, start: TextSize) -> TextRange {
285 // 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