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

Method at_soft_keyword

crates/ruff_python_parser/src/parser/expression.rs:132–134  ·  view source on GitHub ↗

Returns `true` if the parser is at a soft keyword token.

(&self)

Source from the content-addressed store, hash-verified

130
131 /// Returns `true` if the parser is at a soft keyword token.
132 pub(super) fn at_soft_keyword(&self) -> bool {
133 self.current_token_kind().is_soft_keyword()
134 }
135
136 /// Returns `true` if the current token is the start of an expression.
137 pub(super) fn at_expr(&self) -> bool {

Callers 6

at_exprMethod · 0.80
at_simple_stmtMethod · 0.80
at_stmtMethod · 0.80
at_pattern_startMethod · 0.80

Calls 2

is_soft_keywordMethod · 0.80
current_token_kindMethod · 0.80

Tested by

no test coverage detected