Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ current_token_kind
Method
current_token_kind
crates/ruff_python_parser/src/parser/mod.rs:418–420 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
416
/// Returns the current token kind.
417
#[inline]
418
fn current_token_kind(&self) -> TokenKind {
419
self.tokens.current_kind()
420
}
421
422
/// Returns the range of the current token.
423
#[inline]
Callers
15
at_name_or_keyword
Method · 0.80
at_soft_keyword
Method · 0.80
parse_binary_expression_or_higher_recursive
Method · 0.80
parse_lhs_expression
Method · 0.80
parse_identifier_with_context
Method · 0.80
parse_atom
Method · 0.80
parse_postfix_expression
Method · 0.80
parse_arguments
Method · 0.80
parse_comparison_expression
Method · 0.80
parse_interpolated_string_elements
Method · 0.80
parse_list_like_expression
Method · 0.80
parse_set_or_dict_like_expression
Method · 0.80
Calls
1
current_kind
Method · 0.45
Tested by
no test coverage detected