Skip to content

Commit eec1800

Browse files
committed
Remove class_type_field.
1 parent d6fe4b7 commit eec1800

File tree

6 files changed

+0
-40
lines changed

6 files changed

+0
-40
lines changed

jscomp/ml/typedtree.ml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -439,23 +439,9 @@ and class_type_desc =
439439

440440
and class_signature = {
441441
csig_self: core_type;
442-
csig_fields: class_type_field list;
443442
csig_type: Types.class_signature;
444443
}
445444

446-
and class_type_field = {
447-
ctf_desc: class_type_field_desc;
448-
ctf_loc: Location.t;
449-
ctf_attributes: attribute list;
450-
}
451-
452-
and class_type_field_desc =
453-
| Tctf_inherit of class_type
454-
| Tctf_val of (string * mutable_flag * virtual_flag * core_type)
455-
| Tctf_method of (string * private_flag * virtual_flag * core_type)
456-
| Tctf_constraint of (core_type * core_type)
457-
| Tctf_attribute of attribute
458-
459445
(* Auxiliary functions over the a.s.t. *)
460446

461447
let iter_pattern_desc f = function

jscomp/ml/typedtree.mli

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -557,23 +557,9 @@ and class_type_desc =
557557

558558
and class_signature = {
559559
csig_self : core_type;
560-
csig_fields : class_type_field list;
561560
csig_type : Types.class_signature;
562561
}
563562

564-
and class_type_field = {
565-
ctf_desc: class_type_field_desc;
566-
ctf_loc: Location.t;
567-
ctf_attributes: attributes;
568-
}
569-
570-
and class_type_field_desc =
571-
| Tctf_inherit of class_type
572-
| Tctf_val of (string * mutable_flag * virtual_flag * core_type)
573-
| Tctf_method of (string * private_flag * virtual_flag * core_type)
574-
| Tctf_constraint of (core_type * core_type)
575-
| Tctf_attribute of attribute
576-
577563
(* Auxiliary functions over the a.s.t. *)
578564

579565
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
@@ -40,7 +40,6 @@ module type IteratorArgument = sig
4040
val enter_class_signature : class_signature -> unit
4141

4242
val enter_class_type : class_type -> unit
43-
val enter_class_type_field : class_type_field -> unit
4443
val enter_core_type : core_type -> unit
4544
val enter_structure_item : structure_item -> unit
4645

@@ -61,7 +60,6 @@ module type IteratorArgument = sig
6160
val leave_class_signature : class_signature -> unit
6261

6362
val leave_class_type : class_type -> unit
64-
val leave_class_type_field : class_type_field -> unit
6563
val leave_core_type : core_type -> unit
6664
val leave_structure_item : structure_item -> unit
6765

@@ -497,7 +495,6 @@ module DefaultIteratorArgument = struct
497495
let enter_class_signature _ = ()
498496

499497
let enter_class_type _ = ()
500-
let enter_class_type_field _ = ()
501498
let enter_core_type _ = ()
502499
let enter_structure_item _ = ()
503500

@@ -518,7 +515,6 @@ module DefaultIteratorArgument = struct
518515
let leave_class_signature _ = ()
519516

520517
let leave_class_type _ = ()
521-
let leave_class_type_field _ = ()
522518
let leave_core_type _ = ()
523519
let leave_structure_item _ = ()
524520

jscomp/ml/typedtreeIter.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ module type IteratorArgument = sig
3333
val enter_with_constraint : with_constraint -> unit
3434
val enter_class_signature : class_signature -> unit
3535
val enter_class_type : class_type -> unit
36-
val enter_class_type_field : class_type_field -> unit
3736
val enter_core_type : core_type -> unit
3837
val enter_structure_item : structure_item -> unit
3938

@@ -53,7 +52,6 @@ module type IteratorArgument = sig
5352
val leave_with_constraint : with_constraint -> unit
5453
val leave_class_signature : class_signature -> unit
5554
val leave_class_type : class_type -> unit
56-
val leave_class_type_field : class_type_field -> unit
5755
val leave_core_type : core_type -> unit
5856
val leave_structure_item : structure_item -> unit
5957

jscomp/ml/typedtreeMap.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ module type MapArgument = sig
3535
val enter_class_signature : class_signature -> class_signature
3636

3737
val enter_class_type : class_type -> class_type
38-
val enter_class_type_field : class_type_field -> class_type_field
3938
val enter_core_type : core_type -> core_type
4039
val enter_structure_item : structure_item -> structure_item
4140

@@ -58,7 +57,6 @@ module type MapArgument = sig
5857
val leave_class_signature : class_signature -> class_signature
5958

6059
val leave_class_type : class_type -> class_type
61-
val leave_class_type_field : class_type_field -> class_type_field
6260
val leave_core_type : core_type -> core_type
6361
val leave_structure_item : structure_item -> structure_item
6462

@@ -542,7 +540,6 @@ module DefaultMapArgument = struct
542540
let enter_class_signature t = t
543541

544542
let enter_class_type t = t
545-
let enter_class_type_field t = t
546543
let enter_core_type t = t
547544
let enter_structure_item t = t
548545

@@ -564,7 +561,6 @@ module DefaultMapArgument = struct
564561
let leave_class_signature t = t
565562

566563
let leave_class_type t = t
567-
let leave_class_type_field t = t
568564
let leave_core_type t = t
569565
let leave_structure_item t = t
570566

jscomp/ml/typedtreeMap.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ module type MapArgument = sig
3434
val enter_with_constraint : with_constraint -> with_constraint
3535
val enter_class_signature : class_signature -> class_signature
3636
val enter_class_type : class_type -> class_type
37-
val enter_class_type_field : class_type_field -> class_type_field
3837
val enter_core_type : core_type -> core_type
3938
val enter_structure_item : structure_item -> structure_item
4039

@@ -56,7 +55,6 @@ module type MapArgument = sig
5655
val leave_with_constraint : with_constraint -> with_constraint
5756
val leave_class_signature : class_signature -> class_signature
5857
val leave_class_type : class_type -> class_type
59-
val leave_class_type_field : class_type_field -> class_type_field
6058
val leave_core_type : core_type -> core_type
6159
val leave_structure_item : structure_item -> structure_item
6260

0 commit comments

Comments
 (0)