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

Method at_expr

crates/ruff_python_parser/src/parser/expression.rs:136–138  ·  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

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