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

Method parse_continue_statement

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

Parses a `continue` statement. # Panics If the parser isn't positioned at a `continue` token. See:

(&mut self)

Source from the content-addressed store, hash-verified

885 ///
886 /// See: <https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-continue_stmt>
887 fn parse_continue_statement(&mut self) -> ast::StmtContinue {
888 let start = self.node_start();
889 self.bump(TokenKind::Continue);
890 ast::StmtContinue {
891 range: self.node_range(start),
892 node_index: AtomicNodeIndex::NONE,
893 }
894 }
895
896 /// Parses a `break` statement.
897 ///

Callers 1

Calls 3

node_startMethod · 0.80
node_rangeMethod · 0.80
bumpMethod · 0.45

Tested by

no test coverage detected