Skip to content

Commit 9488bfb

Browse files
committed
Tweak names
1 parent 813df3f commit 9488bfb

File tree

5 files changed

+29
-1879
lines changed

5 files changed

+29
-1879
lines changed

jscomp/core/lam_compile_env.ml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type ml_module_info = {
4040
}
4141

4242
type env_value =
43-
| Visit of ml_module_info
43+
| Ml of ml_module_info
4444
| Runtime of ml_module_info
4545
(**
4646
[Runtime (pure, path, cmj_format)]
@@ -126,7 +126,7 @@ let cached_find_ml_id_pos (module_id : Ident.t) name : ident_info =
126126
| None ->
127127
let cmj_path, cmj_table =
128128
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 } ;
130130
let arity, closed_lambda =
131131
Js_cmj_format.query_by_name cmj_table name
132132
in
@@ -136,7 +136,7 @@ let cached_find_ml_id_pos (module_id : Ident.t) name : ident_info =
136136
closed_lambda
137137
}
138138

139-
| Some (Visit { cmj_table } )
139+
| Some (Ml { cmj_table } )
140140
->
141141
let arity , closed_lambda =
142142
Js_cmj_format.query_by_name cmj_table name
@@ -189,7 +189,7 @@ let query_and_add_if_not_exist
189189
Ocaml_types.find_serializable_signatures_by_path oid.id env with
190190
| None -> not_found () (* actually when [not_found] in the call site, we throw... *)
191191
| Some _ ->
192-
oid +> Visit {cmj_table;cmj_path } ;
192+
oid +> Ml {cmj_table;cmj_path } ;
193193
found (Js_cmj_format.is_pure cmj_table)
194194
end
195195
| No_env ->
@@ -211,7 +211,7 @@ let query_and_add_if_not_exist
211211
end
212212

213213
end
214-
| Some (Visit { cmj_table; cmj_path}) ->
214+
| Some (Ml { cmj_table; cmj_path}) ->
215215
begin match env with
216216
| Has_env _ ->
217217
found (Js_cmj_format.is_pure cmj_table)
@@ -240,7 +240,7 @@ let get_package_path_from_cmj
240240
( id : Lam_module_ident.t)
241241
=
242242
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}) ->
244244
(cmj_path,
245245
Js_cmj_format.get_npm_package_path cmj_table,
246246
Js_cmj_format.get_cmj_case cmj_table )
@@ -258,7 +258,7 @@ let get_package_path_from_cmj
258258
| Ml ->
259259
let (cmj_path, cmj_table) =
260260
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 };
262262
(cmj_path,
263263
Js_cmj_format.get_npm_package_path cmj_table,
264264
Js_cmj_format.get_cmj_case cmj_table )

0 commit comments

Comments
 (0)