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

Method current_flags

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

Returns the flags for the current token.

(&self)

Source from the content-addressed store, hash-verified

55
56 /// Returns the flags for the current token.
57 pub(crate) const fn current_flags(&self) -> TokenFlags {
58 self.lexer.current_flags()
59 }
60
61 /// Calls the underlying [`re_lex_logical_token`] method on the lexer with the new lexer
62 /// position and updates the token vector accordingly.

Callers 2

bumpMethod · 0.45
do_bumpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected