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:88–90  ·  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

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

Callers 3

parse_bodyMethod · 0.80

Calls 2

at_tsMethod · 0.80
at_soft_keywordMethod · 0.80

Tested by

no test coverage detected