Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ current_token_range
Method
current_token_range
crates/ruff_python_parser/src/parser/mod.rs:424–426 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
422
/// Returns the range of the current token.
423
#[inline]
424
fn current_token_range(&self) -> TextRange {
425
self.tokens.current_range()
426
}
427
428
/// Returns the current token ID.
429
#[inline]
Callers
15
parse_identifier_with_context
Method · 0.80
parse_missing_identifier
Method · 0.80
parse_atom
Method · 0.80
parse_string_or_byte_literal
Method · 0.80
parse_interpolated_string_elements
Method · 0.80
parse_interpolated_element
Method · 0.80
parse_list_like_expression
Method · 0.80
parse_set_or_dict_like_expression
Method · 0.80
parse_parenthesized_expression
Method · 0.80
parse_single_expression
Method · 0.80
parse_module
Method · 0.80
node_start
Method · 0.80
Calls
1
current_range
Method · 0.45
Tested by
no test coverage detected