• Collects a chain of method calls.

    Example:

    self.field.set(a, b); ^^^^^^^^^^ ^^^^^^^^^ self calls[0]

    The return format is the following: expr.method1().method2(), where expr might be a function call, e.g.:

    beginCell().loadRef(c).endCell(); ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ self calls[0] calls[1]

    Parameters

    Returns {
        calls: AstMethodCall[];
        self: AstExpression;
    } | undefined

    An array of expressions representing the method call chain and the first receiver that might be an expression creating a callable object, or undefined if it's not a method call chain.