File tree Expand file tree Collapse file tree 4 files changed +20
-32
lines changed Expand file tree Collapse file tree 4 files changed +20
-32
lines changed Original file line number Diff line number Diff line change @@ -52,22 +52,19 @@ let count_collects
52
52
(* collect used status*)
53
53
(stats : int Hash_ident.t )
54
54
(* collect all def sites *)
55
- (defined_idents : J.variable_declaration Hash_ident.t ) : Js_fold. fold
55
+ (defined_idents : J.variable_declaration Hash_ident.t ) : Js_iter. iter
56
56
=
57
57
object (self )
58
- inherit Js_fold. fold
59
-
58
+ inherit Js_iter. iter
60
59
method! variable_declaration
61
60
({ident; value ; property = _ ; ident_info = _} as v)
62
61
=
63
62
Hash_ident. add defined_idents ident v;
64
63
match value with
65
- | None ->
66
- self
64
+ | None -> ()
67
65
| Some x
68
66
-> self#expression x
69
- method! ident id = add_use stats id; self
70
-
67
+ method! ident id = add_use stats id
71
68
end
72
69
73
70
@@ -76,5 +73,5 @@ let get_stats (program : J.program) : J.variable_declaration Hash_ident.t
76
73
let stats : int Hash_ident.t = Hash_ident. create 83 in
77
74
let defined_idents : J.variable_declaration Hash_ident.t = Hash_ident. create 83 in
78
75
let my_export_set = program.export_set in
79
- let _ : Js_fold.fold = (count_collects stats defined_idents) #program program in
76
+ (count_collects stats defined_idents) #program program;
80
77
post_process_stats my_export_set defined_idents stats
Original file line number Diff line number Diff line change @@ -102774,22 +102774,19 @@ let count_collects
102774
102774
(* collect used status*)
102775
102775
(stats : int Hash_ident.t)
102776
102776
(* collect all def sites *)
102777
- (defined_idents : J.variable_declaration Hash_ident.t) : Js_fold.fold
102777
+ (defined_idents : J.variable_declaration Hash_ident.t) : Js_iter.iter
102778
102778
=
102779
102779
object (self)
102780
- inherit Js_fold.fold
102781
-
102780
+ inherit Js_iter.iter
102782
102781
method! variable_declaration
102783
102782
({ident; value ; property = _ ; ident_info = _} as v)
102784
102783
=
102785
102784
Hash_ident.add defined_idents ident v;
102786
102785
match value with
102787
- | None ->
102788
- self
102786
+ | None -> ()
102789
102787
| Some x
102790
102788
-> self#expression x
102791
- method! ident id = add_use stats id; self
102792
-
102789
+ method! ident id = add_use stats id
102793
102790
end
102794
102791
102795
102792
@@ -102798,7 +102795,7 @@ let get_stats (program : J.program) : J.variable_declaration Hash_ident.t
102798
102795
let stats : int Hash_ident.t = Hash_ident.create 83 in
102799
102796
let defined_idents : J.variable_declaration Hash_ident.t = Hash_ident.create 83 in
102800
102797
let my_export_set = program.export_set in
102801
- let _ : Js_fold.fold = (count_collects stats defined_idents) #program program in
102798
+ (count_collects stats defined_idents) #program program;
102802
102799
post_process_stats my_export_set defined_idents stats
102803
102800
102804
102801
end
Original file line number Diff line number Diff line change @@ -102774,22 +102774,19 @@ let count_collects
102774
102774
(* collect used status*)
102775
102775
(stats : int Hash_ident.t)
102776
102776
(* collect all def sites *)
102777
- (defined_idents : J.variable_declaration Hash_ident.t) : Js_fold.fold
102777
+ (defined_idents : J.variable_declaration Hash_ident.t) : Js_iter.iter
102778
102778
=
102779
102779
object (self)
102780
- inherit Js_fold.fold
102781
-
102780
+ inherit Js_iter.iter
102782
102781
method! variable_declaration
102783
102782
({ident; value ; property = _ ; ident_info = _} as v)
102784
102783
=
102785
102784
Hash_ident.add defined_idents ident v;
102786
102785
match value with
102787
- | None ->
102788
- self
102786
+ | None -> ()
102789
102787
| Some x
102790
102788
-> self#expression x
102791
- method! ident id = add_use stats id; self
102792
-
102789
+ method! ident id = add_use stats id
102793
102790
end
102794
102791
102795
102792
@@ -102798,7 +102795,7 @@ let get_stats (program : J.program) : J.variable_declaration Hash_ident.t
102798
102795
let stats : int Hash_ident.t = Hash_ident.create 83 in
102799
102796
let defined_idents : J.variable_declaration Hash_ident.t = Hash_ident.create 83 in
102800
102797
let my_export_set = program.export_set in
102801
- let _ : Js_fold.fold = (count_collects stats defined_idents) #program program in
102798
+ (count_collects stats defined_idents) #program program;
102802
102799
post_process_stats my_export_set defined_idents stats
102803
102800
102804
102801
end
Original file line number Diff line number Diff line change @@ -385256,22 +385256,19 @@ let count_collects
385256
385256
(* collect used status*)
385257
385257
(stats : int Hash_ident.t)
385258
385258
(* collect all def sites *)
385259
- (defined_idents : J.variable_declaration Hash_ident.t) : Js_fold.fold
385259
+ (defined_idents : J.variable_declaration Hash_ident.t) : Js_iter.iter
385260
385260
=
385261
385261
object (self)
385262
- inherit Js_fold.fold
385263
-
385262
+ inherit Js_iter.iter
385264
385263
method! variable_declaration
385265
385264
({ident; value ; property = _ ; ident_info = _} as v)
385266
385265
=
385267
385266
Hash_ident.add defined_idents ident v;
385268
385267
match value with
385269
- | None ->
385270
- self
385268
+ | None -> ()
385271
385269
| Some x
385272
385270
-> self#expression x
385273
- method! ident id = add_use stats id; self
385274
-
385271
+ method! ident id = add_use stats id
385275
385272
end
385276
385273
385277
385274
@@ -385280,7 +385277,7 @@ let get_stats (program : J.program) : J.variable_declaration Hash_ident.t
385280
385277
let stats : int Hash_ident.t = Hash_ident.create 83 in
385281
385278
let defined_idents : J.variable_declaration Hash_ident.t = Hash_ident.create 83 in
385282
385279
let my_export_set = program.export_set in
385283
- let _ : Js_fold.fold = (count_collects stats defined_idents) #program program in
385280
+ (count_collects stats defined_idents) #program program;
385284
385281
post_process_stats my_export_set defined_idents stats
385285
385282
385286
385283
end
You can’t perform that action at this time.
0 commit comments