Skip to content

Commit 892df12

Browse files
committed
tweak: meaningful names
1 parent f688276 commit 892df12

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

jscomp/bsb/bsb_db_encode.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ let make_encoding length buf =
6262
they are only used to control the order.
6363
Strictly speaking, [tmp_buf1] is not needed
6464
*)
65-
let encode_single (db : Bsb_db.t) (buf : Ext_buffer.t) =
65+
let encode_single (db : Bsb_db.map) (buf : Ext_buffer.t) =
6666
nl buf ; (* module name section *)
6767
let len = Map_string.cardinal db in
6868
Ext_buffer.add_string_char buf (string_of_int len) '\n';

jscomp/bsb/bsb_db_util.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* along with this program; if not, write to the Free Software
2424
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2525
type module_info = Bsb_db.module_info
26-
type t = Bsb_db.t
26+
type t = Bsb_db.map
2727
(* type case = Bsb_db.case *)
2828

2929

jscomp/bsb/bsb_db_util.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ val conflict_module_info:
3232
'a
3333

3434

35-
val merge : Bsb_db.t -> Bsb_db.t -> Bsb_db.t
35+
val merge : Bsb_db.map -> Bsb_db.map -> Bsb_db.map
3636

37-
val sanity_check : Bsb_db.t -> unit
37+
val sanity_check : Bsb_db.map -> unit
3838

3939
(**
4040
Currently it is okay to have duplicated module,
@@ -43,7 +43,7 @@ val sanity_check : Bsb_db.t -> unit
4343

4444
val add_basename:
4545
dir:string ->
46-
Bsb_db.t ->
46+
Bsb_db.map ->
4747
?error_on_invalid_suffix:Ext_position.t->
4848
string ->
49-
Bsb_db.t
49+
Bsb_db.map

jscomp/bsb/bsb_file_groups.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type build_generator =
3737

3838
type file_group =
3939
{ dir : string ;
40-
sources : Bsb_db.t;
40+
sources : Bsb_db.map;
4141
resources : string list ;
4242
public : public ;
4343
dev_index : bool ;

jscomp/bsb/bsb_file_groups.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type build_generator =
3737

3838
type file_group =
3939
{ dir : string ;
40-
sources : Bsb_db.t;
40+
sources : Bsb_db.map;
4141
resources : string list ;
4242
public : public ;
4343
dev_index : bool ; (* false means not in dev mode *)

jscomp/bsb/bsb_parse_sources.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type cxt = {
6060
*)
6161
let collect_pub_modules
6262
(xs : Ext_json_types.t array)
63-
(cache : Bsb_db.t) : Set_string.t =
63+
(cache : Bsb_db.map) : Set_string.t =
6464
let set = ref Set_string.empty in
6565
for i = 0 to Array.length xs - 1 do
6666
let v = Array.unsafe_get xs i in
@@ -80,7 +80,7 @@ let collect_pub_modules
8080
done ;
8181
!set
8282

83-
let extract_pub (input : Ext_json_types.t Map_string.t) (cur_sources : Bsb_db.t) : Bsb_file_groups.public =
83+
let extract_pub (input : Ext_json_types.t Map_string.t) (cur_sources : Bsb_db.map) : Bsb_file_groups.public =
8484
match Map_string.find_opt input Bsb_build_schemas.public with
8585
| Some ((Str({str = s}) as x)) ->
8686
if s = Bsb_build_schemas.export_all then Export_all else

jscomp/ext/bsb_db.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ type module_info =
4242
}
4343

4444

45-
type t = module_info Map_string.t
45+
type map = module_info Map_string.t
4646

47-
type ts = t array
47+
type ts = map array
4848
(** indexed by the group *)
4949

5050

jscomp/ext/bsb_db.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ type module_info =
4848
name_sans_extension : string;
4949
}
5050

51-
type t = module_info Map_string.t
51+
type map = module_info Map_string.t
5252

53-
type ts = t array
53+
type ts = map array
5454

5555
(** store the meta data indexed by {!Bsb_dir_index}
5656
{[

0 commit comments

Comments
 (0)