@@ -40,7 +40,7 @@ type ml_module_info = {
40
40
}
41
41
42
42
type env_value =
43
- | Visit of ml_module_info
43
+ | Ml of ml_module_info
44
44
| Runtime of ml_module_info
45
45
(* *
46
46
[Runtime (pure, path, cmj_format)]
@@ -126,7 +126,7 @@ let cached_find_ml_id_pos (module_id : Ident.t) name : ident_info =
126
126
| None ->
127
127
let cmj_path, cmj_table =
128
128
Js_cmj_load. find_cmj_exn (module_id.name ^ Literals. suffix_cmj) in
129
- oid +> Visit { cmj_table ; cmj_path } ;
129
+ oid +> Ml { cmj_table ; cmj_path } ;
130
130
let arity, closed_lambda =
131
131
Js_cmj_format. query_by_name cmj_table name
132
132
in
@@ -136,7 +136,7 @@ let cached_find_ml_id_pos (module_id : Ident.t) name : ident_info =
136
136
closed_lambda
137
137
}
138
138
139
- | Some (Visit { cmj_table } )
139
+ | Some (Ml { cmj_table } )
140
140
->
141
141
let arity , closed_lambda =
142
142
Js_cmj_format. query_by_name cmj_table name
@@ -189,7 +189,7 @@ let query_and_add_if_not_exist
189
189
Ocaml_types. find_serializable_signatures_by_path oid.id env with
190
190
| None -> not_found () (* actually when [not_found] in the call site, we throw... *)
191
191
| Some _ ->
192
- oid +> Visit {cmj_table;cmj_path } ;
192
+ oid +> Ml {cmj_table;cmj_path } ;
193
193
found (Js_cmj_format. is_pure cmj_table)
194
194
end
195
195
| No_env ->
@@ -211,7 +211,7 @@ let query_and_add_if_not_exist
211
211
end
212
212
213
213
end
214
- | Some (Visit { cmj_table; cmj_path} ) ->
214
+ | Some (Ml { cmj_table; cmj_path} ) ->
215
215
begin match env with
216
216
| Has_env _ ->
217
217
found (Js_cmj_format. is_pure cmj_table)
@@ -240,7 +240,7 @@ let get_package_path_from_cmj
240
240
( id : Lam_module_ident.t )
241
241
=
242
242
match Lam_module_ident.Hash. find_opt cached_tbl id with
243
- | Some (Visit {cmj_table ; cmj_path} ) ->
243
+ | Some (Ml {cmj_table ; cmj_path} ) ->
244
244
(cmj_path,
245
245
Js_cmj_format. get_npm_package_path cmj_table,
246
246
Js_cmj_format. get_cmj_case cmj_table )
@@ -258,7 +258,7 @@ let get_package_path_from_cmj
258
258
| Ml ->
259
259
let (cmj_path, cmj_table) =
260
260
Js_cmj_load. find_cmj_exn (Lam_module_ident. name id ^ Literals. suffix_cmj) in
261
- id +> Visit {cmj_table;cmj_path };
261
+ id +> Ml {cmj_table;cmj_path };
262
262
(cmj_path,
263
263
Js_cmj_format. get_npm_package_path cmj_table,
264
264
Js_cmj_format. get_cmj_case cmj_table )
0 commit comments