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

Method at_expr

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

Returns `true` if the current token is the start of an expression.

(&self)

Source from the content-addressed store, hash-verified

135
136 /// Returns `true` if the current token is the start of an expression.
137 pub(super) fn at_expr(&self) -> bool {
138 self.at_ts(EXPR_SET) || self.at_soft_keyword()
139 }
140
141 /// Returns `true` if the current token ends a sequence.
142 pub(super) fn at_sequence_end(&self) -> bool {

Callers 13

parse_sliceMethod · 0.80
is_list_elementMethod · 0.80
parse_except_clauseMethod · 0.80
parse_with_itemsMethod · 0.80
parse_match_caseMethod · 0.80
parse_parameterMethod · 0.80

Calls 2

at_tsMethod · 0.80
at_soft_keywordMethod · 0.80

Tested by

no test coverage detected