Skip to content

Commit 1743d22

Browse files
committed
Remove class_type from typed tree.
1 parent a048feb commit 1743d22

File tree

6 files changed

+0
-28
lines changed

6 files changed

+0
-28
lines changed

jscomp/ml/typedtree.ml

-8
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,6 @@ and extension_constructor_kind =
422422
Text_decl of constructor_arguments * core_type option
423423
| Text_rebind of Path.t * Longident.t loc
424424

425-
and class_type =
426-
{
427-
cltyp_type: Types.class_type;
428-
cltyp_env: Env.t;
429-
cltyp_loc: Location.t;
430-
cltyp_attributes: attribute list;
431-
}
432-
433425
(* Auxiliary functions over the a.s.t. *)
434426

435427
let iter_pattern_desc f = function

jscomp/ml/typedtree.mli

-8
Original file line numberDiff line numberDiff line change
@@ -540,14 +540,6 @@ and extension_constructor_kind =
540540
Text_decl of constructor_arguments * core_type option
541541
| Text_rebind of Path.t * Longident.t loc
542542

543-
and class_type =
544-
{
545-
cltyp_type: Types.class_type;
546-
cltyp_env: Env.t;
547-
cltyp_loc: Location.t;
548-
cltyp_attributes: attributes;
549-
}
550-
551543
(* Auxiliary functions over the a.s.t. *)
552544

553545
val iter_pattern_desc: (pattern -> unit) -> pattern_desc -> unit

jscomp/ml/typedtreeIter.ml

-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ module type IteratorArgument = sig
3838
val enter_module_expr : module_expr -> unit
3939
val enter_with_constraint : with_constraint -> unit
4040

41-
val enter_class_type : class_type -> unit
4241
val enter_core_type : core_type -> unit
4342
val enter_structure_item : structure_item -> unit
4443

@@ -57,7 +56,6 @@ module type IteratorArgument = sig
5756
val leave_module_expr : module_expr -> unit
5857
val leave_with_constraint : with_constraint -> unit
5958

60-
val leave_class_type : class_type -> unit
6159
val leave_core_type : core_type -> unit
6260
val leave_structure_item : structure_item -> unit
6361

@@ -491,7 +489,6 @@ module DefaultIteratorArgument = struct
491489
let enter_module_expr _ = ()
492490
let enter_with_constraint _ = ()
493491

494-
let enter_class_type _ = ()
495492
let enter_core_type _ = ()
496493
let enter_structure_item _ = ()
497494

@@ -510,7 +507,6 @@ module DefaultIteratorArgument = struct
510507
let leave_module_expr _ = ()
511508
let leave_with_constraint _ = ()
512509

513-
let leave_class_type _ = ()
514510
let leave_core_type _ = ()
515511
let leave_structure_item _ = ()
516512

jscomp/ml/typedtreeIter.mli

-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ module type IteratorArgument = sig
3131
val enter_module_type : module_type -> unit
3232
val enter_module_expr : module_expr -> unit
3333
val enter_with_constraint : with_constraint -> unit
34-
val enter_class_type : class_type -> unit
3534
val enter_core_type : core_type -> unit
3635
val enter_structure_item : structure_item -> unit
3736

@@ -49,7 +48,6 @@ module type IteratorArgument = sig
4948
val leave_module_type : module_type -> unit
5049
val leave_module_expr : module_expr -> unit
5150
val leave_with_constraint : with_constraint -> unit
52-
val leave_class_type : class_type -> unit
5351
val leave_core_type : core_type -> unit
5452
val leave_structure_item : structure_item -> unit
5553

jscomp/ml/typedtreeMap.ml

-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ module type MapArgument = sig
3333
val enter_module_expr : module_expr -> module_expr
3434
val enter_with_constraint : with_constraint -> with_constraint
3535

36-
val enter_class_type : class_type -> class_type
3736
val enter_core_type : core_type -> core_type
3837
val enter_structure_item : structure_item -> structure_item
3938

@@ -54,7 +53,6 @@ module type MapArgument = sig
5453
val leave_module_expr : module_expr -> module_expr
5554
val leave_with_constraint : with_constraint -> with_constraint
5655

57-
val leave_class_type : class_type -> class_type
5856
val leave_core_type : core_type -> core_type
5957
val leave_structure_item : structure_item -> structure_item
6058

@@ -536,7 +534,6 @@ module DefaultMapArgument = struct
536534
let enter_module_expr t = t
537535
let enter_with_constraint t = t
538536

539-
let enter_class_type t = t
540537
let enter_core_type t = t
541538
let enter_structure_item t = t
542539

@@ -556,7 +553,6 @@ module DefaultMapArgument = struct
556553
let leave_module_expr t = t
557554
let leave_with_constraint t = t
558555

559-
let leave_class_type t = t
560556
let leave_core_type t = t
561557
let leave_structure_item t = t
562558

jscomp/ml/typedtreeMap.mli

-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ module type MapArgument = sig
3232
val enter_module_type : module_type -> module_type
3333
val enter_module_expr : module_expr -> module_expr
3434
val enter_with_constraint : with_constraint -> with_constraint
35-
val enter_class_type : class_type -> class_type
3635
val enter_core_type : core_type -> core_type
3736
val enter_structure_item : structure_item -> structure_item
3837

@@ -52,7 +51,6 @@ module type MapArgument = sig
5251
val leave_module_type : module_type -> module_type
5352
val leave_module_expr : module_expr -> module_expr
5453
val leave_with_constraint : with_constraint -> with_constraint
55-
val leave_class_type : class_type -> class_type
5654
val leave_core_type : core_type -> core_type
5755
val leave_structure_item : structure_item -> structure_item
5856

0 commit comments

Comments
 (0)