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

Method at_compound_stmt

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

Returns `true` if the current token is the start of a compound statement.

(&self)

Source from the content-addressed store, hash-verified

81impl<'src> Parser<'src> {
82 /// Returns `true` if the current token is the start of a compound statement.
83 pub(super) fn at_compound_stmt(&self) -> bool {
84 self.at_ts(COMPOUND_STMT_SET)
85 }
86
87 /// Returns `true` if the current token is the start of a simple statement,
88 /// including expressions.

Callers 3

list_terminator_kindMethod · 0.80

Calls 1

at_tsMethod · 0.80

Tested by

no test coverage detected