@@ -81,40 +81,42 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
81
81
| ( ( [" FB" ; " string" ]
82
82
| [" string" ]
83
83
| [" String" ; " t" ]
84
- | [" Stdlib_String " ; " t" ]
84
+ | [" Stdlib " ; " String " ; " t" ]
85
85
| [" Js" ; (" String" | " String2" ); " t" ] ),
86
86
[] ) ->
87
87
{dependencies = [] ; type_ = string_t}
88
- | ( ([" Js" ; " Types" ; " bigint_val" ] | [" BigInt" ; " t" ] | [" Stdlib_BigInt" ; " t" ]),
88
+ | ( ( [" Js" ; " Types" ; " bigint_val" ]
89
+ | [" BigInt" ; " t" ]
90
+ | [" Stdlib" ; " BigInt" ; " t" ] ),
89
91
[] ) ->
90
92
{dependencies = [] ; type_ = bigint_t}
91
- | ([" Js" ; " Date" ; " t" ] | [" Date" ; " t" ] | [" Stdlib_Date " ; " t" ]), [] ->
93
+ | ([" Js" ; " Date" ; " t" ] | [" Date" ; " t" ] | [" Stdlib " ; " Date " ; " t" ]), [] ->
92
94
{dependencies = [] ; type_ = date_t}
93
- | ( ([" Map" ; " t" ] | [" Stdlib_Map " ; " t" ]),
95
+ | ( ([" Map" ; " t" ] | [" Stdlib " ; " Map " ; " t" ]),
94
96
[param_translation1; param_translation2] ) ->
95
97
{
96
98
dependencies =
97
99
param_translation1.dependencies @ param_translation2.dependencies;
98
100
type_ = map_t (param_translation1.type_, param_translation2.type_);
99
101
}
100
- | ( ([" WeakMap" ; " t" ] | [" Stdlib_WeakMap " ; " t" ]),
102
+ | ( ([" WeakMap" ; " t" ] | [" Stdlib " ; " WeakMap " ; " t" ]),
101
103
[param_translation1; param_translation2] ) ->
102
104
{
103
105
dependencies =
104
106
param_translation1.dependencies @ param_translation2.dependencies;
105
107
type_ = weakmap_t (param_translation1.type_, param_translation2.type_);
106
108
}
107
- | ([" Set" ; " t" ] | [" Stdlib_Set " ; " t" ]), [param_translation] ->
109
+ | ([" Set" ; " t" ] | [" Stdlib " ; " Set " ; " t" ]), [param_translation] ->
108
110
{
109
111
dependencies = param_translation.dependencies;
110
112
type_ = set_t param_translation.type_;
111
113
}
112
- | ([" WeakSet" ; " t" ] | [" Stdlib_WeakSet " ; " t" ]), [param_translation] ->
114
+ | ([" WeakSet" ; " t" ] | [" Stdlib " ; " WeakSet " ; " t" ]), [param_translation] ->
113
115
{
114
116
dependencies = param_translation.dependencies;
115
117
type_ = weakset_t param_translation.type_;
116
118
}
117
- | ([" Js" ; " Re" ; " t" ] | [" RegExp" ; " t" ] | [" Stdlib_RegExp " ; " t" ]), [] ->
119
+ | ([" Js" ; " Re" ; " t" ] | [" RegExp" ; " t" ] | [" Stdlib " ; " RegExp " ; " t" ]), [] ->
118
120
{dependencies = [] ; type_ = regexp_t}
119
121
| ([" FB" ; " unit" ] | [" unit" ]), [] -> {dependencies = [] ; type_ = unit_t}
120
122
| ( ([" FB" ; " array" ] | [" array" ] | [" Js" ; (" Array" | " Array2" ); " t" ]),
@@ -141,7 +143,7 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
141
143
| ( ( [" Pervasives" ; " result" ]
142
144
| [" Belt" ; " Result" ; " t" ]
143
145
| [" result" ]
144
- | [" Stdlib_Result " ; " t" ] ),
146
+ | [" Stdlib " ; " Result " ; " t" ] ),
145
147
[param_translation1; param_translation2] ) ->
146
148
let case name type_ = {case = {label_js = StringLabel name}; t = type_} in
147
149
let variant =
@@ -226,24 +228,24 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
226
228
| ( ( [" Js" ; " Null" ; " t" ]
227
229
| [" Null" ; " t" ]
228
230
| [" Js" ; " null" ]
229
- | [" Stdlib_Null " ; " t" ] ),
231
+ | [" Stdlib " ; " Null " ; " t" ] ),
230
232
[param_translation] ) ->
231
233
{param_translation with type_ = Null param_translation.type_}
232
234
| ( ( [" Js" ; " Nullable" ; " t" ]
233
235
| [" Nullable" ; " t" ]
234
236
| [" Js" ; " nullable" ]
235
237
| [" Js" ; " Null_undefined" ; " t" ]
236
238
| [" Js" ; " null_undefined" ]
237
- | [" Stdlib_Nullable " ; " t" ] ),
239
+ | [" Stdlib " ; " Nullable " ; " t" ] ),
238
240
[param_translation] ) ->
239
241
{param_translation with type_ = Nullable param_translation.type_}
240
242
| ( ( [" Js" ; " Promise" ; " t" ]
241
243
| [" Promise" ; " t" ]
242
244
| [" promise" ]
243
- | [" Stdlib_Promise " ; " t" ] ),
245
+ | [" Stdlib " ; " Promise " ; " t" ] ),
244
246
[param_translation] ) ->
245
247
{param_translation with type_ = Promise param_translation.type_}
246
- | ( ([" Js" ; " Dict" ; " t" ] | [" Dict" ; " t" ] | [" dict" ] | [" Stdlib_Dict " ; " t" ]),
248
+ | ( ([" Js" ; " Dict" ; " t" ] | [" Dict" ; " t" ] | [" dict" ] | [" Stdlib " ; " Dict " ; " t" ]),
247
249
[param_translation] ) ->
248
250
{param_translation with type_ = Dict param_translation.type_}
249
251
| _ -> default_case ()
0 commit comments