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:880–887  ·  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

878 ///
879 /// See: <https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-continue_stmt>
880 fn parse_continue_statement(&mut self) -> ast::StmtContinue {
881 let start = self.node_start();
882 self.bump(TokenKind::Continue);
883 ast::StmtContinue {
884 range: self.node_range(start),
885 node_index: AtomicNodeIndex::NONE,
886 }
887 }
888
889 /// Parses a `break` statement.
890 ///

Callers 1

Calls 3

node_startMethod · 0.80
node_rangeMethod · 0.80
bumpMethod · 0.45

Tested by

no test coverage detected