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)
| 708 | /// |
| 709 | /// See: <https://docs.python.org/3/reference/expressions.html#calls> |
| 710 | fn parse_call_expression(&mut self, func: Expr, start: TextSize) -> ast::ExprCall { |
| 711 | let arguments = self.parse_arguments(ArgumentsContext::Call); |
| 712 | debug_assert_eq!(self.node_range(start).end(), arguments.end()); |
| 713 | |
| 714 | ast::ExprCall { |
| 715 | func: Box::new(func), |
| 716 | arguments, |
| 717 | range_start: start, |
| 718 | node_index: AtomicNodeIndex::NONE, |
| 719 | } |
| 720 | } |
| 721 | |
| 722 | /// Parses an argument list. |
| 723 | /// |
no test coverage detected