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

Method current_flags

crates/ruff_python_parser/src/token_source.rs:60–62  ·  view source on GitHub ↗

Returns the flags for the current token.

(&self)

Source from the content-addressed store, hash-verified

58
59 /// Returns the flags for the current token.
60 pub(crate) const fn current_flags(&self) -> TokenFlags {
61 self.lexer.current_flags()
62 }
63
64 /// Calls the underlying [`re_lex_logical_token`] method on the lexer with the new lexer
65 /// 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