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

Method at_stmt

crates/ruff_python_parser/src/parser/statement.rs:95–97  ·  view source on GitHub ↗

Returns `true` if the current token is the start of a simple, compound or expression statement.

(&self)

Source from the content-addressed store, hash-verified

93 /// Returns `true` if the current token is the start of a simple, compound or expression
94 /// statement.
95 pub(super) fn at_stmt(&self) -> bool {
96 self.at_ts(STMTS_SET) || self.at_soft_keyword()
97 }
98
99 /// Checks if the parser is currently positioned at the start of a type parameter.
100 pub(super) fn at_type_param(&self) -> bool {

Callers 1

is_list_elementMethod · 0.80

Calls 2

at_tsMethod · 0.80
at_soft_keywordMethod · 0.80

Tested by

no test coverage detected