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:892–899  ·  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

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

Callers 1

Calls 3

node_startMethod · 0.80
node_rangeMethod · 0.80
bumpMethod · 0.45

Tested by

no test coverage detected