Skip to content

Commit e1454bf

Browse files
fix: add List transformation method to enable proper traversal of nested FunctionParameter nodes
- Added List transformation method to handle List.items properly - This enables FunctionParameter mode transformation (FUNC_PARAM_IN -> FUNC_PARAM_DEFAULT) to work correctly - Fixed TypeScript error with explicit type annotation for map callback - Test results: 151 failed, 107 passed (improved from 155 failed, 103 passed) Co-Authored-By: Dan Lynch <[email protected]>
1 parent baa923f commit e1454bf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/transform/src/transformers/v13-to-v14.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,4 +1057,16 @@ export class V13ToV14Transformer {
10571057

10581058
return { Null: result };
10591059
}
1060+
1061+
List(node: any, context: TransformerContext): any {
1062+
const result: any = {};
1063+
1064+
if (node.items !== undefined) {
1065+
result.items = Array.isArray(node.items)
1066+
? node.items.map((item: any) => this.transform(item as any, context))
1067+
: this.transform(node.items as any, context);
1068+
}
1069+
1070+
return { List: result };
1071+
}
10601072
}

0 commit comments

Comments
 (0)