* Convert a CALL clause into a CallStep.
(callClause: CallClause)
| 993 | * Convert a CALL clause into a CallStep. |
| 994 | */ |
| 995 | function convertCallClause(callClause: CallClause): CallStep { |
| 996 | // Convert arguments (expressions) to condition values |
| 997 | const args = callClause.arguments.map((arg) => convertConditionValue(arg)); |
| 998 | |
| 999 | // Convert yield items |
| 1000 | const yieldItems: YieldItemConfig[] | undefined = callClause.yield?.map((item: YieldItem) => ({ |
| 1001 | name: item.name, |
| 1002 | alias: item.alias, |
| 1003 | })); |
| 1004 | |
| 1005 | return new CallStep({ |
| 1006 | procedureName: callClause.procedure, |
| 1007 | arguments: args, |
| 1008 | yieldItems, |
| 1009 | }); |
| 1010 | } |
| 1011 | |
| 1012 | /** |
| 1013 | * Convert a SetValue AST node to a SetAssignmentValue. |
no test coverage detected