Skip to content

Commit a048feb

Browse files
committed
Remove class_type_desc and class_signature.
1 parent eec1800 commit a048feb

File tree

6 files changed

+0
-36
lines changed

6 files changed

+0
-36
lines changed

jscomp/ml/typedtree.ml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -424,24 +424,12 @@ and extension_constructor_kind =
424424

425425
and class_type =
426426
{
427-
cltyp_desc: class_type_desc;
428427
cltyp_type: Types.class_type;
429428
cltyp_env: Env.t;
430429
cltyp_loc: Location.t;
431430
cltyp_attributes: attribute list;
432431
}
433432

434-
and class_type_desc =
435-
Tcty_constr of Path.t * Longident.t loc * core_type list
436-
| Tcty_signature of class_signature
437-
| Tcty_arrow of arg_label * core_type * class_type
438-
| Tcty_open of override_flag * Path.t * Longident.t loc * Env.t * class_type
439-
440-
and class_signature = {
441-
csig_self: core_type;
442-
csig_type: Types.class_signature;
443-
}
444-
445433
(* Auxiliary functions over the a.s.t. *)
446434

447435
let iter_pattern_desc f = function

jscomp/ml/typedtree.mli

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -542,24 +542,12 @@ and extension_constructor_kind =
542542

543543
and class_type =
544544
{
545-
cltyp_desc: class_type_desc;
546545
cltyp_type: Types.class_type;
547546
cltyp_env: Env.t;
548547
cltyp_loc: Location.t;
549548
cltyp_attributes: attributes;
550549
}
551550

552-
and class_type_desc =
553-
Tcty_constr of Path.t * Longident.t loc * core_type list
554-
| Tcty_signature of class_signature
555-
| Tcty_arrow of arg_label * core_type * class_type
556-
| Tcty_open of override_flag * Path.t * Longident.t loc * Env.t * class_type
557-
558-
and class_signature = {
559-
csig_self : core_type;
560-
csig_type : Types.class_signature;
561-
}
562-
563551
(* Auxiliary functions over the a.s.t. *)
564552

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

jscomp/ml/typedtreeIter.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ module type IteratorArgument = sig
3737
val enter_module_type : module_type -> unit
3838
val enter_module_expr : module_expr -> unit
3939
val enter_with_constraint : with_constraint -> unit
40-
val enter_class_signature : class_signature -> unit
4140

4241
val enter_class_type : class_type -> unit
4342
val enter_core_type : core_type -> unit
@@ -57,7 +56,6 @@ module type IteratorArgument = sig
5756
val leave_module_type : module_type -> unit
5857
val leave_module_expr : module_expr -> unit
5958
val leave_with_constraint : with_constraint -> unit
60-
val leave_class_signature : class_signature -> unit
6159

6260
val leave_class_type : class_type -> unit
6361
val leave_core_type : core_type -> unit
@@ -492,7 +490,6 @@ module DefaultIteratorArgument = struct
492490
let enter_module_type _ = ()
493491
let enter_module_expr _ = ()
494492
let enter_with_constraint _ = ()
495-
let enter_class_signature _ = ()
496493

497494
let enter_class_type _ = ()
498495
let enter_core_type _ = ()
@@ -512,7 +509,6 @@ module DefaultIteratorArgument = struct
512509
let leave_module_type _ = ()
513510
let leave_module_expr _ = ()
514511
let leave_with_constraint _ = ()
515-
let leave_class_signature _ = ()
516512

517513
let leave_class_type _ = ()
518514
let leave_core_type _ = ()

jscomp/ml/typedtreeIter.mli

Lines changed: 0 additions & 2 deletions
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_signature : class_signature -> unit
3534
val enter_class_type : class_type -> unit
3635
val enter_core_type : core_type -> unit
3736
val enter_structure_item : structure_item -> unit
@@ -50,7 +49,6 @@ module type IteratorArgument = sig
5049
val leave_module_type : module_type -> unit
5150
val leave_module_expr : module_expr -> unit
5251
val leave_with_constraint : with_constraint -> unit
53-
val leave_class_signature : class_signature -> unit
5452
val leave_class_type : class_type -> unit
5553
val leave_core_type : core_type -> unit
5654
val leave_structure_item : structure_item -> unit

jscomp/ml/typedtreeMap.ml

Lines changed: 0 additions & 4 deletions
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_signature : class_signature -> class_signature
3635

3736
val enter_class_type : class_type -> class_type
3837
val enter_core_type : core_type -> core_type
@@ -54,7 +53,6 @@ module type MapArgument = sig
5453
val leave_module_type : module_type -> module_type
5554
val leave_module_expr : module_expr -> module_expr
5655
val leave_with_constraint : with_constraint -> with_constraint
57-
val leave_class_signature : class_signature -> class_signature
5856

5957
val leave_class_type : class_type -> class_type
6058
val leave_core_type : core_type -> core_type
@@ -537,7 +535,6 @@ module DefaultMapArgument = struct
537535
let enter_module_type t = t
538536
let enter_module_expr t = t
539537
let enter_with_constraint t = t
540-
let enter_class_signature t = t
541538

542539
let enter_class_type t = t
543540
let enter_core_type t = t
@@ -558,7 +555,6 @@ module DefaultMapArgument = struct
558555
let leave_module_type t = t
559556
let leave_module_expr t = t
560557
let leave_with_constraint t = t
561-
let leave_class_signature t = t
562558

563559
let leave_class_type t = t
564560
let leave_core_type t = t

jscomp/ml/typedtreeMap.mli

Lines changed: 0 additions & 2 deletions
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_signature : class_signature -> class_signature
3635
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
@@ -53,7 +52,6 @@ module type MapArgument = sig
5352
val leave_module_type : module_type -> module_type
5453
val leave_module_expr : module_expr -> module_expr
5554
val leave_with_constraint : with_constraint -> with_constraint
56-
val leave_class_signature : class_signature -> class_signature
5755
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

0 commit comments

Comments
 (0)