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

Method current_range

crates/ruff_python_parser/src/token_source.rs:46–48  ·  view source on GitHub ↗

Returns the range of the current token.

(&self)

Source from the content-addressed store, hash-verified

44
45 /// Returns the range of the current token.
46 pub(crate) const fn current_range(&self) -> TextRange {
47 self.lexer.current_range()
48 }
49
50 /// Returns the current parenthesis, bracket, and brace nesting level.
51 #[inline]

Callers 2

bumpMethod · 0.45
do_bumpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected