Skip to content

Commit 810cede

Browse files
authored
Merge pull request #1921 from BuckleScript/snapshot_changes
snapshot changes
2 parents f197053 + 5a6fc2c commit 810cede

File tree

6 files changed

+171
-200
lines changed

6 files changed

+171
-200
lines changed

jscomp/all.depend

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,9 @@ core/lam_compile_const.cmx : core/lam_compile_util.cmx core/lam.cmx \
456456
syntax/ast_arg.cmx core/lam_compile_const.cmi
457457
core/lam_inner.cmx : core/lam.cmx core/lam_inner.cmi
458458
core/lam_util.cmx : core/lam_stats.cmx core/lam_print.cmx \
459-
core/lam_id_kind.cmx core/lam_analysis.cmx core/lam.cmx \
460-
common/js_config.cmx ext/ident_set.cmx ext/ident_map.cmx \
461-
ext/ident_hashtbl.cmx common/ext_log.cmx ext/ext_list.cmx \
462-
ext/ext_filename.cmx ext/ext_array.cmx core/lam_util.cmi
459+
core/lam_id_kind.cmx core/lam_analysis.cmx core/lam.cmx ext/ident_set.cmx \
460+
ext/ident_map.cmx ext/ident_hashtbl.cmx ext/ext_list.cmx \
461+
ext/ext_array.cmx core/lam_util.cmi
463462
core/lam_eta_conversion.cmx : ext/literals.cmx core/lam.cmx ext/ext_list.cmx \
464463
ext/ext_ident.cmx core/lam_eta_conversion.cmi
465464
core/lam_group.cmx : core/lam_print.cmx core/lam.cmx core/lam_group.cmi
@@ -519,9 +518,7 @@ core/js_dump.cmx : ext/literals.cmx core/lam_module_ident.cmx \
519518
common/js_config.cmx core/js_closure.cmx core/j.cmx ext/ident_set.cmx \
520519
ext/ext_string.cmx ext/ext_pp_scope.cmx ext/ext_pp.cmx ext/ext_list.cmx \
521520
ext/ext_ident.cmx common/bs_version.cmx core/js_dump.cmi
522-
core/js_pass_debug.cmx : core/js_dump.cmx common/js_config.cmx core/j.cmx \
523-
ext/ext_pervasives.cmx common/ext_log.cmx ext/ext_filename.cmx \
524-
core/js_pass_debug.cmi
521+
core/js_pass_debug.cmx : core/j.cmx core/js_pass_debug.cmi
525522
core/js_of_lam_option.cmx : core/js_runtime_modules.cmx core/js_exp_make.cmx \
526523
core/js_analyzer.cmx core/j.cmx core/js_of_lam_option.cmi
527524
core/js_output.cmx : core/lam_compile_defs.cmx core/lam_analysis.cmx \
@@ -588,8 +585,7 @@ core/lam_pass_eliminate_ref.cmx : core/lam.cmx ext/ident_set.cmx \
588585
core/lam_pass_lets_dce.cmx : core/lam_util.cmx \
589586
core/lam_pass_eliminate_ref.cmx core/lam_pass_count.cmx \
590587
core/lam_beta_reduce.cmx core/lam_analysis.cmx core/lam.cmx \
591-
ext/ident_hashtbl.cmx common/ext_log.cmx ext/ext_list.cmx \
592-
core/lam_pass_lets_dce.cmi
588+
ext/ident_hashtbl.cmx ext/ext_list.cmx core/lam_pass_lets_dce.cmi
593589
core/lam_pass_remove_alias.cmx : core/lam_util.cmx core/lam_stats.cmx \
594590
core/lam_inline_util.cmx core/lam_compile_env.cmx core/lam_closure.cmx \
595591
core/lam_beta_reduce.cmx core/lam_analysis.cmx core/lam.cmx \
@@ -614,8 +610,8 @@ core/lam_compile_group.cmx : ext/literals.cmx core/lam_util.cmx \
614610
core/js_fold_basic.cmx core/js_exp_make.cmx core/js_dump.cmx \
615611
common/js_config.cmx core/js_cmj_format.cmx core/j.cmx ext/ident_set.cmx \
616612
ext/ext_string.cmx ext/ext_pervasives.cmx ext/ext_namespace.cmx \
617-
common/ext_log.cmx ext/ext_list.cmx ext/ext_ident.cmx \
618-
ext/ext_filename.cmx core/lam_compile_group.cmi
613+
ext/ext_list.cmx ext/ext_ident.cmx ext/ext_filename.cmx \
614+
core/lam_compile_group.cmi
619615
core/js_implementation.cmx : core/ocaml_parse.cmx ext/literals.cmx \
620616
core/lam_compile_group.cmx core/lam_compile_env.cmx common/js_config.cmx \
621617
ext/ext_string.cmx ext/ext_pervasives.cmx ext/ext_namespace.cmx \
@@ -658,12 +654,12 @@ ounit/oUnitLogger.cmx : ounit/oUnitUtils.cmx ounit/oUnitTypes.cmx
658654
ounit/oUnitTypes.cmx :
659655
ounit/oUnitUtils.cmx : ounit/oUnitTypes.cmx
660656
ounit/oUnitChooser.cmx : ounit/oUnitTypes.cmx
661-
super_errors/super_misc.cmx : ext/ext_color.cmx super_errors/super_misc.cmi
657+
super_errors/super_misc.cmx : super_errors/super_misc.cmi
662658
super_errors/super_warnings.cmx :
663-
super_errors/super_typecore.cmx : super_errors/super_misc.cmx
664-
super_errors/super_typetexp.cmx :
665659
super_errors/super_location.cmx : super_errors/super_warnings.cmx \
666660
super_errors/super_misc.cmx
661+
super_errors/super_typecore.cmx : super_errors/super_location.cmx
662+
super_errors/super_typetexp.cmx : super_errors/super_location.cmx
667663
super_errors/super_main.cmx : super_errors/super_typetexp.cmx \
668664
super_errors/super_typecore.cmx super_errors/super_location.cmx
669665
super_errors/super_misc.cmi :

jscomp/bin/bsdep.ml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,9 @@ module Color : sig
743743
| Bold
744744
| Reset
745745

746+
| Dim
747+
748+
746749
val ansi_of_style_l : style list -> string
747750
(* ANSI escape sequence for the given style *)
748751

@@ -1147,6 +1150,9 @@ module Color = struct
11471150
| Bold
11481151
| Reset
11491152

1153+
| Dim
1154+
1155+
11501156
let ansi_of_color = function
11511157
| Black -> "0"
11521158
| Red -> "1"
@@ -1163,6 +1169,9 @@ module Color = struct
11631169
| Bold -> "1"
11641170
| Reset -> "0"
11651171

1172+
| Dim -> "2"
1173+
1174+
11661175
let ansi_of_style_l l =
11671176
let s = match l with
11681177
| [] -> code_of_style Reset
@@ -1193,6 +1202,11 @@ module Color = struct
11931202
| "error" -> (!cur_styles).error
11941203
| "warning" -> (!cur_styles).warning
11951204
| "loc" -> (!cur_styles).loc
1205+
1206+
| "info" -> [Bold; FG Yellow]
1207+
| "dim" -> [Dim]
1208+
| "filename" -> [FG Cyan]
1209+
11961210
| _ -> raise Not_found
11971211

11981212
let color_enabled = ref true
@@ -1999,6 +2013,10 @@ val print_error_prefix: formatter -> unit -> unit
19992013

20002014
val error: ?loc:t -> ?sub:error list -> ?if_highlight:string -> string -> error
20012015

2016+
2017+
val pp_ksprintf : ?before:(formatter -> unit) -> (string -> 'a) -> ('b, formatter, unit, 'a) format4 -> 'b
2018+
2019+
20022020
val errorf: ?loc:t -> ?sub:error list -> ?if_highlight:string
20032021
-> ('a, Format.formatter, unit, error) format4 -> 'a
20042022

jscomp/bin/bspp.ml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,9 @@ module Color : sig
680680
| Bold
681681
| Reset
682682

683+
| Dim
684+
685+
683686
val ansi_of_style_l : style list -> string
684687
(* ANSI escape sequence for the given style *)
685688

@@ -1084,6 +1087,9 @@ module Color = struct
10841087
| Bold
10851088
| Reset
10861089

1090+
| Dim
1091+
1092+
10871093
let ansi_of_color = function
10881094
| Black -> "0"
10891095
| Red -> "1"
@@ -1100,6 +1106,9 @@ module Color = struct
11001106
| Bold -> "1"
11011107
| Reset -> "0"
11021108

1109+
| Dim -> "2"
1110+
1111+
11031112
let ansi_of_style_l l =
11041113
let s = match l with
11051114
| [] -> code_of_style Reset
@@ -1130,6 +1139,11 @@ module Color = struct
11301139
| "error" -> (!cur_styles).error
11311140
| "warning" -> (!cur_styles).warning
11321141
| "loc" -> (!cur_styles).loc
1142+
1143+
| "info" -> [Bold; FG Yellow]
1144+
| "dim" -> [Dim]
1145+
| "filename" -> [FG Cyan]
1146+
11331147
| _ -> raise Not_found
11341148

11351149
let color_enabled = ref true
@@ -1936,6 +1950,10 @@ val print_error_prefix: formatter -> unit -> unit
19361950

19371951
val error: ?loc:t -> ?sub:error list -> ?if_highlight:string -> string -> error
19381952

1953+
1954+
val pp_ksprintf : ?before:(formatter -> unit) -> (string -> 'a) -> ('b, formatter, unit, 'a) format4 -> 'b
1955+
1956+
19391957
val errorf: ?loc:t -> ?sub:error list -> ?if_highlight:string
19401958
-> ('a, Format.formatter, unit, error) format4 -> 'a
19411959

jscomp/bin/bsppx.ml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,9 @@ module Color : sig
680680
| Bold
681681
| Reset
682682

683+
| Dim
684+
685+
683686
val ansi_of_style_l : style list -> string
684687
(* ANSI escape sequence for the given style *)
685688

@@ -1084,6 +1087,9 @@ module Color = struct
10841087
| Bold
10851088
| Reset
10861089

1090+
| Dim
1091+
1092+
10871093
let ansi_of_color = function
10881094
| Black -> "0"
10891095
| Red -> "1"
@@ -1100,6 +1106,9 @@ module Color = struct
11001106
| Bold -> "1"
11011107
| Reset -> "0"
11021108

1109+
| Dim -> "2"
1110+
1111+
11031112
let ansi_of_style_l l =
11041113
let s = match l with
11051114
| [] -> code_of_style Reset
@@ -1130,6 +1139,11 @@ module Color = struct
11301139
| "error" -> (!cur_styles).error
11311140
| "warning" -> (!cur_styles).warning
11321141
| "loc" -> (!cur_styles).loc
1142+
1143+
| "info" -> [Bold; FG Yellow]
1144+
| "dim" -> [Dim]
1145+
| "filename" -> [FG Cyan]
1146+
11331147
| _ -> raise Not_found
11341148

11351149
let color_enabled = ref true
@@ -1936,6 +1950,10 @@ val print_error_prefix: formatter -> unit -> unit
19361950

19371951
val error: ?loc:t -> ?sub:error list -> ?if_highlight:string -> string -> error
19381952

1953+
1954+
val pp_ksprintf : ?before:(formatter -> unit) -> (string -> 'a) -> ('b, formatter, unit, 'a) format4 -> 'b
1955+
1956+
19391957
val errorf: ?loc:t -> ?sub:error list -> ?if_highlight:string
19401958
-> ('a, Format.formatter, unit, error) format4 -> 'a
19411959

jscomp/bin/whole_compiler.d

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ bin/whole_compiler.ml : core/lam_util.ml
4545
bin/whole_compiler.ml : ext/ext_array.ml
4646
bin/whole_compiler.ml : ext/ext_bytes.ml
4747
bin/whole_compiler.ml : ext/ext_char.mli
48-
bin/whole_compiler.ml : ext/ext_color.ml
4948
bin/whole_compiler.ml : ext/ext_ident.ml
5049
bin/whole_compiler.ml : ext/ext_list.mli
5150
bin/whole_compiler.ml : ext/ext_utf8.mli
@@ -67,7 +66,6 @@ bin/whole_compiler.ml : core/lam_util.mli
6766
bin/whole_compiler.ml : core/type_util.ml
6867
bin/whole_compiler.ml : ext/ext_array.mli
6968
bin/whole_compiler.ml : ext/ext_bytes.mli
70-
bin/whole_compiler.ml : ext/ext_color.mli
7169
bin/whole_compiler.ml : ext/ext_format.ml
7270
bin/whole_compiler.ml : ext/ext_ident.mli
7371
bin/whole_compiler.ml : ext/ext_option.ml

0 commit comments

Comments
 (0)