Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit f4b374c

Browse files
committed
Refactor: reorder ExportValue
1 parent 67cc3fc commit f4b374c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/CodeItem.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ type exportComponent = {
6060
type exportValue = {
6161
fileName: ModuleName.t,
6262
resolvedName: string,
63-
valueAccessPath: string,
6463
typ,
64+
valueAccessPath: string,
6565
};
6666

6767
type exportKind =

src/EmitJs.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ let rec emitCodeItem =
734734

735735
(env, emitters);
736736

737-
| ExportValue({fileName, resolvedName, valueAccessPath, typ}) =>
737+
| ExportValue({fileName, resolvedName, typ, valueAccessPath}) =>
738738
let nameGen = EmitText.newNameGen();
739739
let importPath =
740740
fileName

src/Translation.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ let translateValue =
149149
typeEnv |> TypeEnv.getValueAccessPath(~name=resolvedName);
150150

151151
let codeItems = [
152-
CodeItem.ExportValue({fileName, resolvedName, valueAccessPath, typ}),
152+
CodeItem.ExportValue({fileName, resolvedName, typ, valueAccessPath}),
153153
];
154154
{
155155
importTypes:

0 commit comments

Comments
 (0)