• Prepares a given method call by:

    • extracting a functional interface
    • create a field of that type
    • initialize the field with the called method
    • replace the call with invocation of the field method
      NOTE: This is an alias for "PrepareCall" aspect

    Parameters

    • $call: undefined | null | Call
    • $method: undefined | null | Method
    • $fieldLocation: undefined | null | Class
    • newFile: boolean = true
    • $funcInterface: undefined | null | InterfaceType = null

    Returns {
        $field: null;
        $interface: null | InterfaceType;
        $interfaceMethod: undefined;
        defaultMethod: undefined;
    } | {
        $field: undefined | Field;
        $interface: InterfaceType;
        $interfaceMethod: undefined | Method;
        defaultMethod: string;
    } | {
        $field: undefined;
        $interface: undefined;
        $interfaceMethod: undefined;
        defaultMethod: undefined;
    }