Skip to content

Commit ab0782b

Browse files
committed
using %private
1 parent 60325b4 commit ab0782b

File tree

4 files changed

+774
-750
lines changed

4 files changed

+774
-750
lines changed

jscomp/runtime/curry.ml

+16-16
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ external apply7 : ('a0 -> 'a1 -> 'a2 -> 'a3 -> 'a4 -> 'a5 -> 'a6 -> 'a7) -> 'a0
6161
(* Internal use *)
6262
external apply8 : ('a0 -> 'a1 -> 'a2 -> 'a3 -> 'a4 -> 'a5 -> 'a6 -> 'a7 -> 'a8) -> 'a0 -> 'a1 -> 'a2 -> 'a3 -> 'a4 -> 'a5 -> 'a6 -> 'a7 -> 'a8 = "#apply8"
6363

64-
(* Intenral use *)
65-
let curry_1 o a0 arity =
64+
65+
let %private curry_1 o a0 arity =
6666
match arity with
6767
| 1 -> apply1 (Obj.magic o) a0
6868
| 2 -> apply2 (Obj.magic o) a0
@@ -86,8 +86,8 @@ let __1 o =
8686
else fun a0 -> _1 o a0
8787

8888

89-
(* Intenral use *)
90-
let curry_2 o a0 a1 arity =
89+
90+
let %private curry_2 o a0 a1 arity =
9191
match arity with
9292
| 1 -> app (apply1 (Obj.magic o) a0) [|a1|]
9393
| 2 -> apply2 (Obj.magic o) a0 a1
@@ -111,8 +111,8 @@ let __2 o =
111111
else fun a0 a1 -> _2 o a0 a1
112112

113113

114-
(* Intenral use *)
115-
let curry_3 o a0 a1 a2 arity =
114+
115+
let %private curry_3 o a0 a1 a2 arity =
116116
match arity with
117117
| 1 -> app (apply1 (Obj.magic o) a0) [|a1;a2|]
118118
| 2 -> app (apply2 (Obj.magic o) a0 a1) [|a2|]
@@ -136,8 +136,8 @@ let __3 o =
136136
else fun a0 a1 a2 -> _3 o a0 a1 a2
137137

138138

139-
(* Intenral use *)
140-
let curry_4 o a0 a1 a2 a3 arity =
139+
140+
let %private curry_4 o a0 a1 a2 a3 arity =
141141
match arity with
142142
| 1 -> app (apply1 (Obj.magic o) a0) [|a1;a2;a3|]
143143
| 2 -> app (apply2 (Obj.magic o) a0 a1) [|a2;a3|]
@@ -161,8 +161,8 @@ let __4 o =
161161
else fun a0 a1 a2 a3 -> _4 o a0 a1 a2 a3
162162

163163

164-
(* Intenral use *)
165-
let curry_5 o a0 a1 a2 a3 a4 arity =
164+
165+
let %private curry_5 o a0 a1 a2 a3 a4 arity =
166166
match arity with
167167
| 1 -> app (apply1 (Obj.magic o) a0) [|a1;a2;a3;a4|]
168168
| 2 -> app (apply2 (Obj.magic o) a0 a1) [|a2;a3;a4|]
@@ -186,8 +186,8 @@ let __5 o =
186186
else fun a0 a1 a2 a3 a4 -> _5 o a0 a1 a2 a3 a4
187187

188188

189-
(* Intenral use *)
190-
let curry_6 o a0 a1 a2 a3 a4 a5 arity =
189+
190+
let %private curry_6 o a0 a1 a2 a3 a4 a5 arity =
191191
match arity with
192192
| 1 -> app (apply1 (Obj.magic o) a0) [|a1;a2;a3;a4;a5|]
193193
| 2 -> app (apply2 (Obj.magic o) a0 a1) [|a2;a3;a4;a5|]
@@ -211,8 +211,8 @@ let __6 o =
211211
else fun a0 a1 a2 a3 a4 a5 -> _6 o a0 a1 a2 a3 a4 a5
212212

213213

214-
(* Intenral use *)
215-
let curry_7 o a0 a1 a2 a3 a4 a5 a6 arity =
214+
215+
let %private curry_7 o a0 a1 a2 a3 a4 a5 a6 arity =
216216
match arity with
217217
| 1 -> app (apply1 (Obj.magic o) a0) [|a1;a2;a3;a4;a5;a6|]
218218
| 2 -> app (apply2 (Obj.magic o) a0 a1) [|a2;a3;a4;a5;a6|]
@@ -236,8 +236,8 @@ let __7 o =
236236
else fun a0 a1 a2 a3 a4 a5 a6 -> _7 o a0 a1 a2 a3 a4 a5 a6
237237

238238

239-
(* Intenral use *)
240-
let curry_8 o a0 a1 a2 a3 a4 a5 a6 a7 arity =
239+
240+
let %private curry_8 o a0 a1 a2 a3 a4 a5 a6 a7 arity =
241241
match arity with
242242
| 1 -> app (apply1 (Obj.magic o) a0) [|a1;a2;a3;a4;a5;a6;a7|]
243243
| 2 -> app (apply2 (Obj.magic o) a0 a1) [|a2;a3;a4;a5;a6;a7|]

0 commit comments

Comments
 (0)