Parse a call expression. The function name is parsed by the caller and passed as `func` along with the `start` position of the call expression. # Panics If the parser isn't position at a `(` token. See:
(&mut self, func: Expr, start: TextSize)
| 700 | /// |
| 701 | /// See: <https://docs.python.org/3/reference/expressions.html#calls> |
| 702 | fn parse_call_expression(&mut self, func: Expr, start: TextSize) -> ast::ExprCall { |
| 703 | let arguments = self.parse_arguments(ArgumentsContext::Call); |
| 704 | debug_assert_eq!(self.node_range(start).end(), arguments.end()); |
| 705 | |
| 706 | ast::ExprCall { |
| 707 | func: Box::new(func), |
| 708 | arguments, |
| 709 | range_start: start, |
| 710 | node_index: AtomicNodeIndex::NONE, |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | /// Parses an argument list. |
| 715 | /// |
no test coverage detected