@@ -287,9 +287,7 @@ type type_iterators =
287
287
it_extension_constructor : type_iterators -> extension_constructor -> unit ;
288
288
it_module_declaration : type_iterators -> module_declaration -> unit ;
289
289
it_modtype_declaration : type_iterators -> modtype_declaration -> unit ;
290
- it_class_declaration : type_iterators -> class_declaration -> unit ;
291
290
it_module_type : type_iterators -> module_type -> unit ;
292
- it_class_type : type_iterators -> class_type -> unit ;
293
291
it_type_kind : type_iterators -> type_kind -> unit ;
294
292
it_do_type_expr : type_iterators -> type_expr -> unit ;
295
293
it_type_expr : type_iterators -> type_expr -> unit ;
@@ -345,32 +343,13 @@ let type_iterators =
345
343
it.it_module_type it md.md_type
346
344
and it_modtype_declaration it mtd =
347
345
may (it.it_module_type it) mtd.mtd_type
348
- and it_class_declaration it cd =
349
- List. iter (it.it_type_expr it) cd.cty_params;
350
- it.it_class_type it cd.cty_type;
351
- may (it.it_type_expr it) cd.cty_new;
352
- it.it_path cd.cty_path
353
346
and it_module_type it = function
354
347
Mty_ident p
355
348
| Mty_alias (_ , p ) -> it.it_path p
356
349
| Mty_signature sg -> it.it_signature it sg
357
350
| Mty_functor (_ , mto , mt ) ->
358
351
may (it.it_module_type it) mto;
359
352
it.it_module_type it mt
360
- and it_class_type it = function
361
- Cty_constr (p , tyl , cty ) ->
362
- it.it_path p;
363
- List. iter (it.it_type_expr it) tyl;
364
- it.it_class_type it cty
365
- | Cty_signature cs ->
366
- it.it_type_expr it cs.csig_self;
367
- Vars. iter (fun _ (_ ,_ ,ty ) -> it.it_type_expr it ty) cs.csig_vars;
368
- List. iter
369
- (fun (p , tl ) -> it.it_path p; List. iter (it.it_type_expr it) tl)
370
- cs.csig_inher
371
- | Cty_arrow (_ , ty , cty ) ->
372
- it.it_type_expr it ty;
373
- it.it_class_type it cty
374
353
and it_type_kind it kind =
375
354
iter_type_expr_kind (it.it_type_expr it) kind
376
355
and it_do_type_expr it ty =
@@ -386,8 +365,8 @@ let type_iterators =
386
365
and it_path _p = ()
387
366
in
388
367
{ it_path; it_type_expr = it_do_type_expr; it_do_type_expr;
389
- it_type_kind; it_class_type; it_module_type;
390
- it_signature; it_class_declaration;
368
+ it_type_kind; it_module_type;
369
+ it_signature;
391
370
it_modtype_declaration; it_module_declaration; it_extension_constructor;
392
371
it_type_declaration; it_value_description; it_signature_item; }
393
372
@@ -525,9 +504,6 @@ let unmark_class_signature sign =
525
504
unmark_type sign.csig_self;
526
505
Vars. iter (fun _l (_m , _v , t ) -> unmark_type t) sign.csig_vars
527
506
528
- let unmark_class_type cty =
529
- unmark_iterators.it_class_type unmark_iterators cty
530
-
531
507
532
508
(* ******************************************)
533
509
(* Memorization of abbreviation expansion *)
0 commit comments