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

Method at_simple_stmt

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

Returns `true` if the current token is the start of a simple statement, including expressions.

(&self)

Source from the content-addressed store, hash-verified

87 /// Returns `true` if the current token is the start of a simple statement,
88 /// including expressions.
89 fn at_simple_stmt(&self) -> bool {
90 self.at_ts(SIMPLE_STMT_WITH_EXPR_SET) || self.at_soft_keyword()
91 }
92
93 /// Returns `true` if the current token is the start of a simple, compound or expression
94 /// statement.

Callers 3

parse_bodyMethod · 0.80

Calls 2

at_tsMethod · 0.80
at_soft_keywordMethod · 0.80

Tested by

no test coverage detected