File tree 7 files changed +43
-26
lines changed
7 files changed +43
-26
lines changed Original file line number Diff line number Diff line change @@ -676,8 +676,8 @@ core/lam_compile_main.cmx : ext/literals.cmx core/lam_util.cmx \
676
676
core/js_implementation.cmx : core/ocaml_parse.cmx ext/literals.cmx \
677
677
core/lam_compile_main.cmx core/lam_compile_env.cmx common/js_config.cmx \
678
678
ext/ext_string.cmx ext/ext_pervasives.cmx ext/ext_namespace.cmx \
679
- common/ext_log.cmx ext/ext_io.cmx syntax/bs_ast_invariant .cmx \
680
- depends/binary_ast.cmx core/js_implementation.cmi
679
+ common/ext_log.cmx ext/ext_io.cmx depends/binary_ast .cmx \
680
+ core/js_implementation.cmi
681
681
core/ocaml_batch_compile.cmx : core/ocaml_parse.cmx \
682
682
core/js_implementation.cmx common/js_config.cmx ext/ext_ref.cmx \
683
683
ext/ext_pervasives.cmx ext/ext_namespace.cmx ext/ext_modulename.cmx \
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ open Compenv
20
20
21
21
let fprintf = Format. fprintf
22
22
23
- let dummy_unused_attribute : Warnings.t = ( Bs_unused_attribute " " )
23
+
24
24
25
25
let print_if ppf flag printer arg =
26
26
if ! flag then fprintf ppf " %a@." printer arg;
@@ -41,8 +41,7 @@ let after_parsing_sig ppf sourcefile outputprefix ast =
41
41
end ;
42
42
if ! Js_config. syntax_only then () else
43
43
begin
44
- if Warnings. is_active dummy_unused_attribute then
45
- Bs_ast_invariant. emit_external_warnings.signature Bs_ast_invariant. emit_external_warnings ast ;
44
+
46
45
if Js_config. get_diagnose () then
47
46
Format. fprintf Format. err_formatter " Building %s@." sourcefile;
48
47
let modulename = module_of_filename ppf sourcefile outputprefix in
@@ -86,9 +85,7 @@ let after_parsing_impl ppf sourcefile outputprefix ast =
86
85
ast ;
87
86
if ! Js_config. syntax_only then () else
88
87
begin
89
-
90
- if Warnings. is_active dummy_unused_attribute then
91
- Bs_ast_invariant. emit_external_warnings.structure Bs_ast_invariant. emit_external_warnings ast ;
88
+
92
89
if Js_config. get_diagnose () then
93
90
Format. fprintf Format. err_formatter " Building %s@." sourcefile;
94
91
let modulename = Compenv. module_of_filename ppf sourcefile outputprefix in
Original file line number Diff line number Diff line change @@ -687,7 +687,7 @@ let signature_config_table :
687
687
(Parsetree. expression option -> unit ) String_map. t =
688
688
String_map. of_list common_actions_table
689
689
690
-
690
+ let dummy_unused_attribute : Warnings.t = ( Bs_unused_attribute " " )
691
691
692
692
let rewrite_signature :
693
693
(Parsetree. signature -> Parsetree. signature ) ref =
@@ -703,7 +703,10 @@ let rewrite_signature :
703
703
end
704
704
| _ ->
705
705
unsafe_mapper.signature unsafe_mapper x in
706
- reset () ; result
706
+ reset () ;
707
+ if Warnings. is_active dummy_unused_attribute then
708
+ Bs_ast_invariant. emit_external_warnings.signature Bs_ast_invariant. emit_external_warnings ast ;
709
+ result
707
710
)
708
711
709
712
let rewrite_implementation : (Parsetree.structure -> Parsetree.structure) ref =
@@ -727,5 +730,9 @@ let rewrite_implementation : (Parsetree.structure -> Parsetree.structure) ref =
727
730
end
728
731
| _ ->
729
732
unsafe_mapper.structure unsafe_mapper x in
730
- reset () ; result )
733
+ reset () ;
734
+ (if Warnings. is_active dummy_unused_attribute then
735
+ Bs_ast_invariant. emit_external_warnings.structure Bs_ast_invariant. emit_external_warnings result);
736
+ result
737
+ )
731
738
Original file line number Diff line number Diff line change 25
25
26
26
27
27
28
- val rewrite_signature : (Parsetree .signature -> Parsetree .signature ) ref
28
+ val rewrite_signature :
29
+ (Parsetree .signature -> Parsetree .signature ) ref
29
30
30
- val rewrite_implementation : (Parsetree .structure -> Parsetree .structure ) ref
31
+ val rewrite_implementation :
32
+ (Parsetree .structure -> Parsetree .structure ) ref
31
33
32
34
33
35
Original file line number Diff line number Diff line change @@ -31185,7 +31185,7 @@ let init () =
31185
31185
(Exp.fun_ "" None
31186
31186
(Pat.var pat_param)
31187
31187
(if createType then
31188
- (eraseType (Exp.constraint_ exp_param newType) -~ const_int offset)
31188
+ (( exp_param +: newType) -~ const_int offset)
31189
31189
+>
31190
31190
core_type
31191
31191
else
@@ -35477,9 +35477,11 @@ module Ppx_entry : sig
35477
35477
35478
35478
35479
35479
35480
- val rewrite_signature : (Parsetree.signature -> Parsetree.signature) ref
35480
+ val rewrite_signature :
35481
+ (Parsetree.signature -> Parsetree.signature) ref
35481
35482
35482
- val rewrite_implementation : (Parsetree.structure -> Parsetree.structure) ref
35483
+ val rewrite_implementation :
35484
+ (Parsetree.structure -> Parsetree.structure) ref
35483
35485
35484
35486
35485
35487
@@ -36248,7 +36250,9 @@ let rewrite_implementation : (Parsetree.structure -> Parsetree.structure) ref =
36248
36250
end
36249
36251
| _ ->
36250
36252
unsafe_mapper.structure unsafe_mapper x in
36251
- reset (); result )
36253
+ reset ();
36254
+ result
36255
+ )
36252
36256
36253
36257
36254
36258
end
Original file line number Diff line number Diff line change @@ -13133,7 +13133,7 @@ let init () =
13133
13133
(Exp.fun_ "" None
13134
13134
(Pat.var pat_param)
13135
13135
(if createType then
13136
- (eraseType (Exp.constraint_ exp_param newType) -~ const_int offset)
13136
+ (( exp_param +: newType) -~ const_int offset)
13137
13137
+>
13138
13138
core_type
13139
13139
else
@@ -18594,9 +18594,11 @@ module Ppx_entry : sig
18594
18594
18595
18595
18596
18596
18597
- val rewrite_signature : (Parsetree.signature -> Parsetree.signature) ref
18597
+ val rewrite_signature :
18598
+ (Parsetree.signature -> Parsetree.signature) ref
18598
18599
18599
- val rewrite_implementation : (Parsetree.structure -> Parsetree.structure) ref
18600
+ val rewrite_implementation :
18601
+ (Parsetree.structure -> Parsetree.structure) ref
18600
18602
18601
18603
18602
18604
@@ -19365,7 +19367,9 @@ let rewrite_implementation : (Parsetree.structure -> Parsetree.structure) ref =
19365
19367
end
19366
19368
| _ ->
19367
19369
unsafe_mapper.structure unsafe_mapper x in
19368
- reset (); result )
19370
+ reset ();
19371
+ result
19372
+ )
19369
19373
19370
19374
19371
19375
end
Original file line number Diff line number Diff line change @@ -105952,7 +105952,7 @@ let init () =
105952
105952
(Exp.fun_ "" None
105953
105953
(Pat.var pat_param)
105954
105954
(if createType then
105955
- (eraseType (Exp.constraint_ exp_param newType) -~ const_int offset)
105955
+ (( exp_param +: newType) -~ const_int offset)
105956
105956
+>
105957
105957
core_type
105958
105958
else
@@ -109391,9 +109391,11 @@ module Ppx_entry : sig
109391
109391
109392
109392
109393
109393
109394
- val rewrite_signature : (Parsetree.signature -> Parsetree.signature) ref
109394
+ val rewrite_signature :
109395
+ (Parsetree.signature -> Parsetree.signature) ref
109395
109396
109396
- val rewrite_implementation : (Parsetree.structure -> Parsetree.structure) ref
109397
+ val rewrite_implementation :
109398
+ (Parsetree.structure -> Parsetree.structure) ref
109397
109399
109398
109400
109399
109401
@@ -110162,7 +110164,9 @@ let rewrite_implementation : (Parsetree.structure -> Parsetree.structure) ref =
110162
110164
end
110163
110165
| _ ->
110164
110166
unsafe_mapper.structure unsafe_mapper x in
110165
- reset (); result )
110167
+ reset ();
110168
+ result
110169
+ )
110166
110170
110167
110171
110168
110172
end
@@ -113807,7 +113811,6 @@ let after_parsing_impl ppf sourcefile outputprefix ast =
113807
113811
ast ;
113808
113812
if !Js_config.syntax_only then () else
113809
113813
begin
113810
-
113811
113814
if Warnings.is_active dummy_unused_attribute then
113812
113815
Bs_ast_invariant.emit_external_warnings.structure Bs_ast_invariant.emit_external_warnings ast ;
113813
113816
if Js_config.get_diagnose () then
You can’t perform that action at this time.
0 commit comments