Skip to content

Commit 321dead

Browse files
committed
avoid using class
1 parent db78d91 commit 321dead

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

jscomp/core/js_fold_basic.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
let add_lam_module_ident = Lam_module_ident.Hash_set.add
2929
let create = Lam_module_ident.Hash_set.create
30-
class count_hard_dependencies hard_dependencies =
30+
let count_hard_dependencies hard_dependencies =
3131
object(self : 'self_type)
3232
inherit Js_fold.fold as super
3333
method! module_id vid =
@@ -45,7 +45,7 @@ class count_hard_dependencies hard_dependencies =
4545

4646
let calculate_hard_dependencies block =
4747
let hard_dependencies = create 17 in
48-
let _ : Js_fold.fold = (new count_hard_dependencies hard_dependencies)#block block in
48+
let _ : Js_fold.fold = (count_hard_dependencies hard_dependencies)#block block in
4949
hard_dependencies
5050

5151
(*

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99248,7 +99248,7 @@ end = struct
9924899248

9924999249
let add_lam_module_ident = Lam_module_ident.Hash_set.add
9925099250
let create = Lam_module_ident.Hash_set.create
99251-
class count_hard_dependencies hard_dependencies =
99251+
let count_hard_dependencies hard_dependencies =
9925299252
object(self : 'self_type)
9925399253
inherit Js_fold.fold as super
9925499254
method! module_id vid =
@@ -99266,7 +99266,7 @@ class count_hard_dependencies hard_dependencies =
9926699266

9926799267
let calculate_hard_dependencies block =
9926899268
let hard_dependencies = create 17 in
99269-
let _ : Js_fold.fold = (new count_hard_dependencies hard_dependencies)#block block in
99269+
let _ : Js_fold.fold = (count_hard_dependencies hard_dependencies)#block block in
9927099270
hard_dependencies
9927199271

9927299272
(*

lib/4.06.1/unstable/js_refmt_compiler.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99248,7 +99248,7 @@ end = struct
9924899248

9924999249
let add_lam_module_ident = Lam_module_ident.Hash_set.add
9925099250
let create = Lam_module_ident.Hash_set.create
99251-
class count_hard_dependencies hard_dependencies =
99251+
let count_hard_dependencies hard_dependencies =
9925299252
object(self : 'self_type)
9925399253
inherit Js_fold.fold as super
9925499254
method! module_id vid =
@@ -99266,7 +99266,7 @@ class count_hard_dependencies hard_dependencies =
9926699266

9926799267
let calculate_hard_dependencies block =
9926899268
let hard_dependencies = create 17 in
99269-
let _ : Js_fold.fold = (new count_hard_dependencies hard_dependencies)#block block in
99269+
let _ : Js_fold.fold = (count_hard_dependencies hard_dependencies)#block block in
9927099270
hard_dependencies
9927199271

9927299272
(*

lib/4.06.1/whole_compiler.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381730,7 +381730,7 @@ end = struct
381730381730

381731381731
let add_lam_module_ident = Lam_module_ident.Hash_set.add
381732381732
let create = Lam_module_ident.Hash_set.create
381733-
class count_hard_dependencies hard_dependencies =
381733+
let count_hard_dependencies hard_dependencies =
381734381734
object(self : 'self_type)
381735381735
inherit Js_fold.fold as super
381736381736
method! module_id vid =
@@ -381748,7 +381748,7 @@ class count_hard_dependencies hard_dependencies =
381748381748

381749381749
let calculate_hard_dependencies block =
381750381750
let hard_dependencies = create 17 in
381751-
let _ : Js_fold.fold = (new count_hard_dependencies hard_dependencies)#block block in
381751+
let _ : Js_fold.fold = (count_hard_dependencies hard_dependencies)#block block in
381752381752
hard_dependencies
381753381753

381754381754
(*

0 commit comments

Comments
 (0)