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

Method current_kind

crates/ruff_python_parser/src/token_source.rs:41–43  ·  view source on GitHub ↗

Returns the kind of the current token.

(&self)

Source from the content-addressed store, hash-verified

39
40 /// Returns the kind of the current token.
41 pub(crate) const fn current_kind(&self) -> TokenKind {
42 self.lexer.current_kind()
43 }
44
45 /// Returns the last consumed non-trivia token kind.
46 pub(crate) fn previous_kind(&self) -> Option<TokenKind> {

Callers 1

re_lex_logical_tokenMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected