MCPcopy Create free account
hub / github.com/Glyphack/enderpy / parse_guard

Method parse_guard

parser/src/parser/parser.rs:792–795  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

790 }
791
792 fn parse_guard(&mut self) -> Result<Expression, ParsingError> {
793 self.expect(Kind::If)?;
794 self.parse_named_expression()
795 }
796
797 // https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-patterns
798 // The open sequence pattern is either a pattern or maybe star pattern

Callers 1

parse_casesMethod · 0.80

Calls 2

expectMethod · 0.80

Tested by

no test coverage detected