AutoBE
    Preparing search index...

    Function call expression for non-API function invocations and utility calls.

    IMPORTANT: For API function calls, use IApiOperateStatement instead. This type should only be used for:

    • Helper functions and transformations
    • Built-in JavaScript functions
    • Non-API library function calls

    Essential for E2E testing for utility operations, but API calls should use the dedicated IApiOperateStatement for proper handling of business operations and response capturing.

    AI function calling importance: This represents utility and validation operations in test scenarios, but should NOT be used for SDK API calls which have their own dedicated statement type.

    interface ICallExpression {
        arguments: IExpression[];
        expression: IExpression;
        type: "callExpression";
    }
    Index

    Properties

    arguments: IExpression[]

    Array of argument expressions passed to the function.

    Each argument must match the expected parameter type of the called function. Order and types must correspond exactly to the function signature defined in utility or validation documentation.

    Common patterns:

    • Transformation parameters for utility functions

    AI validation: Ensure argument types and count match the target function's signature exactly, excluding API functions.

    expression: IExpression

    Expression representing the function to be called.

    Should NOT represent API/SDK functions - use IApiOperateStatement for those instead.

    Typically represents utility functions:

    • Built-in functions (Array.from, Object.keys, etc.)
    • Helper/transformation functions

    Can also be a simple identifier for direct function references.

    AI requirement: Must NOT resolve to SDK API functions. Those should use the dedicated API function call statement type.

    type: "callExpression"

    Type discriminator.