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

Method current_token_range

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

Source from the content-addressed store, hash-verified

395 /// Returns the range of the current token.
396 #[inline]
397 fn current_token_range(&self) -> TextRange {
398 self.tokens.current_range()
399 }
400
401 /// Returns the current token ID.
402 #[inline]

Calls 1

current_rangeMethod · 0.45

Tested by

no test coverage detected