MCPcopy Create free account
hub / github.com/astral-sh/ruff / parse_call_expression

Method parse_call_expression

crates/ruff_python_parser/src/parser/expression.rs:702–712  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

Calls 1

parse_argumentsMethod · 0.80

Tested by

no test coverage detected