Skip to content

Commit baa923f

Browse files
fix: add funcformat field to FuncCall and transform FUNC_PARAM_IN to FUNC_PARAM_DEFAULT in FunctionParameter
Co-Authored-By: Dan Lynch <[email protected]>
1 parent c6823ab commit baa923f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ export class V13ToV14Transformer {
155155
result.location = node.location;
156156
}
157157

158+
result.funcformat = "COERCE_EXPLICIT_CALL";
159+
158160
return { FuncCall: result };
159161
}
160162

@@ -254,7 +256,7 @@ export class V13ToV14Transformer {
254256
}
255257

256258
if (node.mode !== undefined) {
257-
result.mode = node.mode;
259+
result.mode = node.mode === "FUNC_PARAM_IN" ? "FUNC_PARAM_DEFAULT" : node.mode;
258260
}
259261

260262
return { FunctionParameter: result };

0 commit comments

Comments
 (0)