https://docs.python.org/3/reference/compound_stmts.html#literal-patterns
(&mut self)
| 888 | |
| 889 | // https://docs.python.org/3/reference/compound_stmts.html#literal-patterns |
| 890 | fn parse_literal_pattern(&mut self) -> Result<MatchPattern, ParsingError> { |
| 891 | let node = self.start_node(); |
| 892 | let value = self.parse_binary_arithmetic_operation(0)?; |
| 893 | Ok(MatchPattern::MatchValue(MatchValue { |
| 894 | node: self.finish_node(node), |
| 895 | value, |
| 896 | })) |
| 897 | } |
| 898 | |
| 899 | fn parse_capture_or_wildcard_pattern(&mut self) -> Result<MatchPattern, ParsingError> { |
| 900 | let capture_value = self.cur_token().to_string(self.source); |
no test coverage detected