https://docs.python.org/3/reference/expressions.html#boolean-operations
(&mut self)
| 2057 | |
| 2058 | // https://docs.python.org/3/reference/expressions.html#boolean-operations |
| 2059 | fn parse_not_test(&mut self) -> Result<Expression, ParsingError> { |
| 2060 | let node = self.start_node(); |
| 2061 | if self.at(Kind::Not) { |
| 2062 | self.bump(Kind::Not); |
| 2063 | let operand = self.parse_not_test()?; |
| 2064 | return Ok(Expression::UnaryOp(Box::new(UnaryOperation { |
| 2065 | node: self.finish_node(node), |
| 2066 | op: UnaryOperator::Not, |
| 2067 | operand, |
| 2068 | }))); |
| 2069 | } |
| 2070 | self.parse_comparison() |
| 2071 | } |
| 2072 | |
| 2073 | // https://docs.python.org/3/reference/expressions.html#comparisons |
| 2074 | fn parse_comparison(&mut self) -> Result<Expression, ParsingError> { |
no test coverage detected