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

Method current_flags

crates/ruff_python_parser/src/lexer.rs:133–135  ·  view source on GitHub ↗

Returns the flags for the current token.

(&self)

Source from the content-addressed store, hash-verified

131
132 /// Returns the flags for the current token.
133 pub(crate) const fn current_flags(&self) -> TokenFlags {
134 self.current_flags
135 }
136
137 /// Helper function to push the given error, updating the current range with the error location
138 /// and return the [`TokenKind::Unknown`] token.

Callers 7

lexFunction · 0.45
test_non_ascii_name_flagFunction · 0.45
bump_nameMethod · 0.45
bump_string_valueMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_non_ascii_name_flagFunction · 0.36