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

Method current_range

crates/ruff_python_parser/src/token_source.rs:55–57  ·  view source on GitHub ↗

Returns the range of the current token.

(&self)

Source from the content-addressed store, hash-verified

53
54 /// Returns the range of the current token.
55 pub(crate) const fn current_range(&self) -> TextRange {
56 self.lexer.current_range()
57 }
58
59 /// Returns the flags for the current token.
60 pub(crate) const fn current_flags(&self) -> TokenFlags {

Callers 2

bumpMethod · 0.45
do_bumpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected