UNPKG

@mondaydotcomorg/atp-compiler

Version:

Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management

19 lines 1.03 kB
import * as t from '@babel/types'; export declare function isPausableCall(node: t.Node): boolean; export declare function isPausableCallExpression(node: t.CallExpression): boolean; export declare function getMemberExpressionPath(node: t.MemberExpression): string; export declare function containsAwait(node: t.Node): boolean; export declare function containsPausableCall(node: t.Node): boolean; export declare function isAsyncFunction(node: t.Node): boolean; export declare function getNodeLocation(node: t.Node): { line: number; column: number; } | undefined; export declare function createRuntimeCall(fnName: string, args: t.Expression[]): t.AwaitExpression; export declare function wrapInAsyncFunction(body: t.Statement[]): t.FunctionExpression; export declare function isArrayMethod(node: t.Node, methodName: string): boolean; /** * Extract parameter name from ForOfStatement left side */ export declare function extractForOfParamName(left: t.VariableDeclaration | t.LVal): string; //# sourceMappingURL=utils.d.ts.map