Expand description
Function expression parsing
This module handles parsing of function-related expressions:
- Function expressions (anonymous functions)
- Arrow functions
- Function calls
- Method calls
- Argument lists
- Type annotations
Functions§
- parse_
arg_ list - Parse argument list with support for named arguments Returns (positional_args, named_args)
- parse_
arrow_ function - Parse arrow function
- parse_
function_ expr - Parse function expression (anonymous function)
- parse_
pipe_ lambda - Parse pipe lambda: |x| expr, |x, y| x + y, || 42, |x| { … } Reuses the same AST node as arrow functions (Expr::FunctionExpr).
- parse_
regular_ function_ expr - Parse regular function expression