-
Notifications
You must be signed in to change notification settings - Fork 12
/
ast_lifter_409.ml
1590 lines (1588 loc) · 76.2 KB
/
ast_lifter_409.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
open Migrate_parsetree.Ast_409
class virtual ['res] lifter =
object (this)
method lift_Parsetree_expression : Parsetree.expression -> 'res=
(fun
{ Parsetree.pexp_desc = pexp_desc;
Parsetree.pexp_loc = pexp_loc;
Parsetree.pexp_loc_stack = pexp_loc_stack;
Parsetree.pexp_attributes = pexp_attributes }
->
this#record "Ast_409.Parsetree.expression"
[("pexp_desc", (this#lift_Parsetree_expression_desc pexp_desc));
("pexp_loc", (this#lift_Location_t pexp_loc));
("pexp_loc_stack", (this#lift_loc_stack pexp_loc_stack));
("pexp_attributes",
(this#lift_Parsetree_attributes pexp_attributes))] : Parsetree.expression
->
'res)
method lift_Parsetree_expression_desc :
Parsetree.expression_desc -> 'res=
(function
| Parsetree.Pexp_ident x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_ident", [this#lift_loc this#lift_Longident_t x0])
| Parsetree.Pexp_constant x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_constant", [this#lift_Parsetree_constant x0])
| Parsetree.Pexp_let (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_let",
[this#lift_rec_flag x0;
this#list (List.map this#lift_Parsetree_value_binding x1);
this#lift_Parsetree_expression x2])
| Parsetree.Pexp_function x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_function", [this#lift_Parsetree_cases x0])
| Parsetree.Pexp_fun (x0, x1, x2, x3) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_fun",
[this#lift_arg_label x0;
this#lift_option this#lift_Parsetree_expression x1;
this#lift_Parsetree_pattern x2;
this#lift_Parsetree_expression x3])
| Parsetree.Pexp_apply (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_apply",
[this#lift_Parsetree_expression x0;
this#list
(List.map
(fun x ->
let (x0, x1) = x in
this#tuple
[this#lift_arg_label x0;
this#lift_Parsetree_expression x1]) x1)])
| Parsetree.Pexp_match (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_match",
[this#lift_Parsetree_expression x0;
this#lift_Parsetree_cases x1])
| Parsetree.Pexp_try (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_try",
[this#lift_Parsetree_expression x0;
this#lift_Parsetree_cases x1])
| Parsetree.Pexp_tuple x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_tuple",
[this#list (List.map this#lift_Parsetree_expression x0)])
| Parsetree.Pexp_construct (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_construct",
[this#lift_loc this#lift_Longident_t x0;
this#lift_option this#lift_Parsetree_expression x1])
| Parsetree.Pexp_variant (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_variant",
[this#lift_label x0;
this#lift_option this#lift_Parsetree_expression x1])
| Parsetree.Pexp_record (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_record",
[this#list
(List.map
(fun x ->
let (x0, x1) = x in
this#tuple
[this#lift_loc this#lift_Longident_t x0;
this#lift_Parsetree_expression x1]) x0);
this#lift_option this#lift_Parsetree_expression x1])
| Parsetree.Pexp_field (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_field",
[this#lift_Parsetree_expression x0;
this#lift_loc this#lift_Longident_t x1])
| Parsetree.Pexp_setfield (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_setfield",
[this#lift_Parsetree_expression x0;
this#lift_loc this#lift_Longident_t x1;
this#lift_Parsetree_expression x2])
| Parsetree.Pexp_array x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_array",
[this#list (List.map this#lift_Parsetree_expression x0)])
| Parsetree.Pexp_ifthenelse (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_ifthenelse",
[this#lift_Parsetree_expression x0;
this#lift_Parsetree_expression x1;
this#lift_option this#lift_Parsetree_expression x2])
| Parsetree.Pexp_sequence (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_sequence",
[this#lift_Parsetree_expression x0;
this#lift_Parsetree_expression x1])
| Parsetree.Pexp_while (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_while",
[this#lift_Parsetree_expression x0;
this#lift_Parsetree_expression x1])
| Parsetree.Pexp_for (x0, x1, x2, x3, x4) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_for",
[this#lift_Parsetree_pattern x0;
this#lift_Parsetree_expression x1;
this#lift_Parsetree_expression x2;
this#lift_direction_flag x3;
this#lift_Parsetree_expression x4])
| Parsetree.Pexp_constraint (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_constraint",
[this#lift_Parsetree_expression x0;
this#lift_Parsetree_core_type x1])
| Parsetree.Pexp_coerce (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_coerce",
[this#lift_Parsetree_expression x0;
this#lift_option this#lift_Parsetree_core_type x1;
this#lift_Parsetree_core_type x2])
| Parsetree.Pexp_send (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_send",
[this#lift_Parsetree_expression x0;
this#lift_loc this#lift_label x1])
| Parsetree.Pexp_new x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_new", [this#lift_loc this#lift_Longident_t x0])
| Parsetree.Pexp_setinstvar (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_setinstvar",
[this#lift_loc this#lift_label x0;
this#lift_Parsetree_expression x1])
| Parsetree.Pexp_override x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_override",
[this#list
(List.map
(fun x ->
let (x0, x1) = x in
this#tuple
[this#lift_loc this#lift_label x0;
this#lift_Parsetree_expression x1]) x0)])
| Parsetree.Pexp_letmodule (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_letmodule",
[this#lift_loc this#string x0;
this#lift_Parsetree_module_expr x1;
this#lift_Parsetree_expression x2])
| Parsetree.Pexp_letexception (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_letexception",
[this#lift_Parsetree_extension_constructor x0;
this#lift_Parsetree_expression x1])
| Parsetree.Pexp_assert x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_assert", [this#lift_Parsetree_expression x0])
| Parsetree.Pexp_lazy x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_lazy", [this#lift_Parsetree_expression x0])
| Parsetree.Pexp_poly (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_poly",
[this#lift_Parsetree_expression x0;
this#lift_option this#lift_Parsetree_core_type x1])
| Parsetree.Pexp_object x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_object", [this#lift_Parsetree_class_structure x0])
| Parsetree.Pexp_newtype (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_newtype",
[this#lift_loc this#string x0;
this#lift_Parsetree_expression x1])
| Parsetree.Pexp_pack x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_pack", [this#lift_Parsetree_module_expr x0])
| Parsetree.Pexp_open (x0, x1) ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_open",
[this#lift_Parsetree_open_declaration x0;
this#lift_Parsetree_expression x1])
| Parsetree.Pexp_letop x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_letop", [this#lift_Parsetree_letop x0])
| Parsetree.Pexp_extension x0 ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_extension", [this#lift_Parsetree_extension x0])
| Parsetree.Pexp_unreachable ->
this#constr "Ast_409.Parsetree.expression_desc"
("Pexp_unreachable", []) : Parsetree.expression_desc ->
'res)
method lift_Parsetree_letop : Parsetree.letop -> 'res=
(fun
{ Parsetree.let_ = let_; Parsetree.ands = ands;
Parsetree.body = body }
->
this#record "Ast_409.Parsetree.letop"
[("let_", (this#lift_Parsetree_binding_op let_));
("ands",
(this#list (List.map this#lift_Parsetree_binding_op ands)));
("body", (this#lift_Parsetree_expression body))] : Parsetree.letop
-> 'res)
method lift_Parsetree_binding_op : Parsetree.binding_op -> 'res=
(fun
{ Parsetree.pbop_op = pbop_op;
Parsetree.pbop_pat = pbop_pat;
Parsetree.pbop_exp = pbop_exp;
Parsetree.pbop_loc = pbop_loc }
->
this#record "Ast_409.Parsetree.binding_op"
[("pbop_op", (this#lift_loc this#string pbop_op));
("pbop_pat", (this#lift_Parsetree_pattern pbop_pat));
("pbop_exp", (this#lift_Parsetree_expression pbop_exp));
("pbop_loc", (this#lift_Location_t pbop_loc))] : Parsetree.binding_op
-> 'res)
method lift_direction_flag :
Migrate_parsetree__Ast_409.Asttypes.direction_flag -> 'res=
(function
| Migrate_parsetree__Ast_409.Asttypes.Upto ->
this#constr "Migrate_parsetree__Ast_409.Asttypes.direction_flag"
("Upto", [])
| Migrate_parsetree__Ast_409.Asttypes.Downto ->
this#constr "Migrate_parsetree__Ast_409.Asttypes.direction_flag"
("Downto", []) : Migrate_parsetree__Ast_409.Asttypes.direction_flag
-> 'res)
method lift_Parsetree_cases : Parsetree.case list -> 'res=
(fun x -> this#list (List.map this#lift_Parsetree_case x) : Parsetree.case list
->
'res)
method lift_Parsetree_case : Parsetree.case -> 'res=
(fun
{ Parsetree.pc_lhs = pc_lhs;
Parsetree.pc_guard = pc_guard;
Parsetree.pc_rhs = pc_rhs }
->
this#record "Ast_409.Parsetree.case"
[("pc_lhs", (this#lift_Parsetree_pattern pc_lhs));
("pc_guard",
(this#lift_option this#lift_Parsetree_expression pc_guard));
("pc_rhs", (this#lift_Parsetree_expression pc_rhs))] : Parsetree.case
->
'res)
method lift_Parsetree_value_binding :
Parsetree.value_binding -> 'res=
(fun
{ Parsetree.pvb_pat = pvb_pat;
Parsetree.pvb_expr = pvb_expr;
Parsetree.pvb_attributes = pvb_attributes;
Parsetree.pvb_loc = pvb_loc }
->
this#record "Ast_409.Parsetree.value_binding"
[("pvb_pat", (this#lift_Parsetree_pattern pvb_pat));
("pvb_expr", (this#lift_Parsetree_expression pvb_expr));
("pvb_attributes",
(this#lift_Parsetree_attributes pvb_attributes));
("pvb_loc", (this#lift_Location_t pvb_loc))] : Parsetree.value_binding
-> 'res)
method lift_Parsetree_pattern : Parsetree.pattern -> 'res=
(fun
{ Parsetree.ppat_desc = ppat_desc;
Parsetree.ppat_loc = ppat_loc;
Parsetree.ppat_loc_stack = ppat_loc_stack;
Parsetree.ppat_attributes = ppat_attributes }
->
this#record "Ast_409.Parsetree.pattern"
[("ppat_desc", (this#lift_Parsetree_pattern_desc ppat_desc));
("ppat_loc", (this#lift_Location_t ppat_loc));
("ppat_loc_stack", (this#lift_loc_stack ppat_loc_stack));
("ppat_attributes",
(this#lift_Parsetree_attributes ppat_attributes))] : Parsetree.pattern
->
'res)
method lift_Parsetree_pattern_desc :
Parsetree.pattern_desc -> 'res=
(function
| Parsetree.Ppat_any ->
this#constr "Ast_409.Parsetree.pattern_desc" ("Ppat_any", [])
| Parsetree.Ppat_var x0 ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_var", [this#lift_loc this#string x0])
| Parsetree.Ppat_alias (x0, x1) ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_alias",
[this#lift_Parsetree_pattern x0; this#lift_loc this#string x1])
| Parsetree.Ppat_constant x0 ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_constant", [this#lift_Parsetree_constant x0])
| Parsetree.Ppat_interval (x0, x1) ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_interval",
[this#lift_Parsetree_constant x0;
this#lift_Parsetree_constant x1])
| Parsetree.Ppat_tuple x0 ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_tuple",
[this#list (List.map this#lift_Parsetree_pattern x0)])
| Parsetree.Ppat_construct (x0, x1) ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_construct",
[this#lift_loc this#lift_Longident_t x0;
this#lift_option this#lift_Parsetree_pattern x1])
| Parsetree.Ppat_variant (x0, x1) ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_variant",
[this#lift_label x0;
this#lift_option this#lift_Parsetree_pattern x1])
| Parsetree.Ppat_record (x0, x1) ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_record",
[this#list
(List.map
(fun x ->
let (x0, x1) = x in
this#tuple
[this#lift_loc this#lift_Longident_t x0;
this#lift_Parsetree_pattern x1]) x0);
this#lift_closed_flag x1])
| Parsetree.Ppat_array x0 ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_array",
[this#list (List.map this#lift_Parsetree_pattern x0)])
| Parsetree.Ppat_or (x0, x1) ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_or",
[this#lift_Parsetree_pattern x0;
this#lift_Parsetree_pattern x1])
| Parsetree.Ppat_constraint (x0, x1) ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_constraint",
[this#lift_Parsetree_pattern x0;
this#lift_Parsetree_core_type x1])
| Parsetree.Ppat_type x0 ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_type", [this#lift_loc this#lift_Longident_t x0])
| Parsetree.Ppat_lazy x0 ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_lazy", [this#lift_Parsetree_pattern x0])
| Parsetree.Ppat_unpack x0 ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_unpack", [this#lift_loc this#string x0])
| Parsetree.Ppat_exception x0 ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_exception", [this#lift_Parsetree_pattern x0])
| Parsetree.Ppat_extension x0 ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_extension", [this#lift_Parsetree_extension x0])
| Parsetree.Ppat_open (x0, x1) ->
this#constr "Ast_409.Parsetree.pattern_desc"
("Ppat_open",
[this#lift_loc this#lift_Longident_t x0;
this#lift_Parsetree_pattern x1]) : Parsetree.pattern_desc
-> 'res)
method lift_Parsetree_core_type : Parsetree.core_type -> 'res=
(fun
{ Parsetree.ptyp_desc = ptyp_desc;
Parsetree.ptyp_loc = ptyp_loc;
Parsetree.ptyp_loc_stack = ptyp_loc_stack;
Parsetree.ptyp_attributes = ptyp_attributes }
->
this#record "Ast_409.Parsetree.core_type"
[("ptyp_desc", (this#lift_Parsetree_core_type_desc ptyp_desc));
("ptyp_loc", (this#lift_Location_t ptyp_loc));
("ptyp_loc_stack", (this#lift_loc_stack ptyp_loc_stack));
("ptyp_attributes",
(this#lift_Parsetree_attributes ptyp_attributes))] : Parsetree.core_type
->
'res)
method lift_Parsetree_core_type_desc :
Parsetree.core_type_desc -> 'res=
(function
| Parsetree.Ptyp_any ->
this#constr "Ast_409.Parsetree.core_type_desc" ("Ptyp_any", [])
| Parsetree.Ptyp_var x0 ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_var", [this#string x0])
| Parsetree.Ptyp_arrow (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_arrow",
[this#lift_arg_label x0;
this#lift_Parsetree_core_type x1;
this#lift_Parsetree_core_type x2])
| Parsetree.Ptyp_tuple x0 ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_tuple",
[this#list (List.map this#lift_Parsetree_core_type x0)])
| Parsetree.Ptyp_constr (x0, x1) ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_constr",
[this#lift_loc this#lift_Longident_t x0;
this#list (List.map this#lift_Parsetree_core_type x1)])
| Parsetree.Ptyp_object (x0, x1) ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_object",
[this#list (List.map this#lift_Parsetree_object_field x0);
this#lift_closed_flag x1])
| Parsetree.Ptyp_class (x0, x1) ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_class",
[this#lift_loc this#lift_Longident_t x0;
this#list (List.map this#lift_Parsetree_core_type x1)])
| Parsetree.Ptyp_alias (x0, x1) ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_alias",
[this#lift_Parsetree_core_type x0; this#string x1])
| Parsetree.Ptyp_variant (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_variant",
[this#list (List.map this#lift_Parsetree_row_field x0);
this#lift_closed_flag x1;
this#lift_option
(fun x -> this#list (List.map this#lift_label x)) x2])
| Parsetree.Ptyp_poly (x0, x1) ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_poly",
[this#list
(List.map (fun x -> this#lift_loc this#string x) x0);
this#lift_Parsetree_core_type x1])
| Parsetree.Ptyp_package x0 ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_package", [this#lift_Parsetree_package_type x0])
| Parsetree.Ptyp_extension x0 ->
this#constr "Ast_409.Parsetree.core_type_desc"
("Ptyp_extension", [this#lift_Parsetree_extension x0]) :
Parsetree.core_type_desc -> 'res)
method lift_Parsetree_package_type :
Parsetree.package_type -> 'res=
(fun x ->
let (x0, x1) = x in
this#tuple
[this#lift_loc this#lift_Longident_t x0;
this#list
(List.map
(fun x ->
let (x0, x1) = x in
this#tuple
[this#lift_loc this#lift_Longident_t x0;
this#lift_Parsetree_core_type x1]) x1)] : Parsetree.package_type
-> 'res)
method lift_Parsetree_row_field : Parsetree.row_field -> 'res=
(fun
{ Parsetree.prf_desc = prf_desc;
Parsetree.prf_loc = prf_loc;
Parsetree.prf_attributes = prf_attributes }
->
this#record "Ast_409.Parsetree.row_field"
[("prf_desc", (this#lift_Parsetree_row_field_desc prf_desc));
("prf_loc", (this#lift_Location_t prf_loc));
("prf_attributes",
(this#lift_Parsetree_attributes prf_attributes))] : Parsetree.row_field
->
'res)
method lift_Parsetree_row_field_desc :
Parsetree.row_field_desc -> 'res=
(function
| Parsetree.Rtag (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.row_field_desc"
("Rtag",
[this#lift_loc this#lift_label x0;
this#lift_bool x1;
this#list (List.map this#lift_Parsetree_core_type x2)])
| Parsetree.Rinherit x0 ->
this#constr "Ast_409.Parsetree.row_field_desc"
("Rinherit", [this#lift_Parsetree_core_type x0]) : Parsetree.row_field_desc
->
'res)
method lift_Parsetree_object_field :
Parsetree.object_field -> 'res=
(fun
{ Parsetree.pof_desc = pof_desc;
Parsetree.pof_loc = pof_loc;
Parsetree.pof_attributes = pof_attributes }
->
this#record "Ast_409.Parsetree.object_field"
[("pof_desc", (this#lift_Parsetree_object_field_desc pof_desc));
("pof_loc", (this#lift_Location_t pof_loc));
("pof_attributes",
(this#lift_Parsetree_attributes pof_attributes))] : Parsetree.object_field
->
'res)
method lift_Parsetree_attributes : Parsetree.attributes -> 'res=
(fun x -> this#list (List.map this#lift_Parsetree_attribute x) :
Parsetree.attributes -> 'res)
method lift_Parsetree_attribute : Parsetree.attribute -> 'res=
(fun
{ Parsetree.attr_name = attr_name;
Parsetree.attr_payload = attr_payload;
Parsetree.attr_loc = attr_loc }
->
this#record "Ast_409.Parsetree.attribute"
[("attr_name", (this#lift_loc this#string attr_name));
("attr_payload", (this#lift_Parsetree_payload attr_payload));
("attr_loc", (this#lift_Location_t attr_loc))] : Parsetree.attribute
-> 'res)
method lift_Parsetree_payload : Parsetree.payload -> 'res=
(function
| Parsetree.PStr x0 ->
this#constr "Ast_409.Parsetree.payload"
("PStr", [this#lift_Parsetree_structure x0])
| Parsetree.PSig x0 ->
this#constr "Ast_409.Parsetree.payload"
("PSig", [this#lift_Parsetree_signature x0])
| Parsetree.PTyp x0 ->
this#constr "Ast_409.Parsetree.payload"
("PTyp", [this#lift_Parsetree_core_type x0])
| Parsetree.PPat (x0, x1) ->
this#constr "Ast_409.Parsetree.payload"
("PPat",
[this#lift_Parsetree_pattern x0;
this#lift_option this#lift_Parsetree_expression x1]) :
Parsetree.payload -> 'res)
method lift_Parsetree_structure : Parsetree.structure -> 'res=
(fun x -> this#list (List.map this#lift_Parsetree_structure_item x) :
Parsetree.structure -> 'res)
method lift_Parsetree_structure_item :
Parsetree.structure_item -> 'res=
(fun
{ Parsetree.pstr_desc = pstr_desc;
Parsetree.pstr_loc = pstr_loc }
->
this#record "Ast_409.Parsetree.structure_item"
[("pstr_desc",
(this#lift_Parsetree_structure_item_desc pstr_desc));
("pstr_loc", (this#lift_Location_t pstr_loc))] : Parsetree.structure_item
-> 'res)
method lift_Parsetree_structure_item_desc :
Parsetree.structure_item_desc -> 'res=
(function
| Parsetree.Pstr_eval (x0, x1) ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_eval",
[this#lift_Parsetree_expression x0;
this#lift_Parsetree_attributes x1])
| Parsetree.Pstr_value (x0, x1) ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_value",
[this#lift_rec_flag x0;
this#list (List.map this#lift_Parsetree_value_binding x1)])
| Parsetree.Pstr_primitive x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_primitive", [this#lift_Parsetree_value_description x0])
| Parsetree.Pstr_type (x0, x1) ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_type",
[this#lift_rec_flag x0;
this#list (List.map this#lift_Parsetree_type_declaration x1)])
| Parsetree.Pstr_typext x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_typext", [this#lift_Parsetree_type_extension x0])
| Parsetree.Pstr_exception x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_exception", [this#lift_Parsetree_type_exception x0])
| Parsetree.Pstr_module x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_module", [this#lift_Parsetree_module_binding x0])
| Parsetree.Pstr_recmodule x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_recmodule",
[this#list (List.map this#lift_Parsetree_module_binding x0)])
| Parsetree.Pstr_modtype x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_modtype",
[this#lift_Parsetree_module_type_declaration x0])
| Parsetree.Pstr_open x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_open", [this#lift_Parsetree_open_declaration x0])
| Parsetree.Pstr_class x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_class",
[this#list (List.map this#lift_Parsetree_class_declaration x0)])
| Parsetree.Pstr_class_type x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_class_type",
[this#list
(List.map this#lift_Parsetree_class_type_declaration x0)])
| Parsetree.Pstr_include x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_include", [this#lift_Parsetree_include_declaration x0])
| Parsetree.Pstr_attribute x0 ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_attribute", [this#lift_Parsetree_attribute x0])
| Parsetree.Pstr_extension (x0, x1) ->
this#constr "Ast_409.Parsetree.structure_item_desc"
("Pstr_extension",
[this#lift_Parsetree_extension x0;
this#lift_Parsetree_attributes x1]) : Parsetree.structure_item_desc
-> 'res)
method lift_Parsetree_include_declaration :
Parsetree.include_declaration -> 'res=
(fun x ->
this#lift_Parsetree_include_infos this#lift_Parsetree_module_expr x :
Parsetree.include_declaration -> 'res)
method lift_Parsetree_class_declaration :
Parsetree.class_declaration -> 'res=
(fun x ->
this#lift_Parsetree_class_infos this#lift_Parsetree_class_expr x :
Parsetree.class_declaration -> 'res)
method lift_Parsetree_class_expr : Parsetree.class_expr -> 'res=
(fun
{ Parsetree.pcl_desc = pcl_desc;
Parsetree.pcl_loc = pcl_loc;
Parsetree.pcl_attributes = pcl_attributes }
->
this#record "Ast_409.Parsetree.class_expr"
[("pcl_desc", (this#lift_Parsetree_class_expr_desc pcl_desc));
("pcl_loc", (this#lift_Location_t pcl_loc));
("pcl_attributes",
(this#lift_Parsetree_attributes pcl_attributes))] : Parsetree.class_expr
->
'res)
method lift_Parsetree_class_expr_desc :
Parsetree.class_expr_desc -> 'res=
(function
| Parsetree.Pcl_constr (x0, x1) ->
this#constr "Ast_409.Parsetree.class_expr_desc"
("Pcl_constr",
[this#lift_loc this#lift_Longident_t x0;
this#list (List.map this#lift_Parsetree_core_type x1)])
| Parsetree.Pcl_structure x0 ->
this#constr "Ast_409.Parsetree.class_expr_desc"
("Pcl_structure", [this#lift_Parsetree_class_structure x0])
| Parsetree.Pcl_fun (x0, x1, x2, x3) ->
this#constr "Ast_409.Parsetree.class_expr_desc"
("Pcl_fun",
[this#lift_arg_label x0;
this#lift_option this#lift_Parsetree_expression x1;
this#lift_Parsetree_pattern x2;
this#lift_Parsetree_class_expr x3])
| Parsetree.Pcl_apply (x0, x1) ->
this#constr "Ast_409.Parsetree.class_expr_desc"
("Pcl_apply",
[this#lift_Parsetree_class_expr x0;
this#list
(List.map
(fun x ->
let (x0, x1) = x in
this#tuple
[this#lift_arg_label x0;
this#lift_Parsetree_expression x1]) x1)])
| Parsetree.Pcl_let (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.class_expr_desc"
("Pcl_let",
[this#lift_rec_flag x0;
this#list (List.map this#lift_Parsetree_value_binding x1);
this#lift_Parsetree_class_expr x2])
| Parsetree.Pcl_constraint (x0, x1) ->
this#constr "Ast_409.Parsetree.class_expr_desc"
("Pcl_constraint",
[this#lift_Parsetree_class_expr x0;
this#lift_Parsetree_class_type x1])
| Parsetree.Pcl_extension x0 ->
this#constr "Ast_409.Parsetree.class_expr_desc"
("Pcl_extension", [this#lift_Parsetree_extension x0])
| Parsetree.Pcl_open (x0, x1) ->
this#constr "Ast_409.Parsetree.class_expr_desc"
("Pcl_open",
[this#lift_Parsetree_open_description x0;
this#lift_Parsetree_class_expr x1]) : Parsetree.class_expr_desc
-> 'res)
method lift_Parsetree_class_structure :
Parsetree.class_structure -> 'res=
(fun
{ Parsetree.pcstr_self = pcstr_self;
Parsetree.pcstr_fields = pcstr_fields }
->
this#record "Ast_409.Parsetree.class_structure"
[("pcstr_self", (this#lift_Parsetree_pattern pcstr_self));
("pcstr_fields",
(this#list
(List.map this#lift_Parsetree_class_field pcstr_fields)))] :
Parsetree.class_structure -> 'res)
method lift_Parsetree_class_field :
Parsetree.class_field -> 'res=
(fun
{ Parsetree.pcf_desc = pcf_desc;
Parsetree.pcf_loc = pcf_loc;
Parsetree.pcf_attributes = pcf_attributes }
->
this#record "Ast_409.Parsetree.class_field"
[("pcf_desc", (this#lift_Parsetree_class_field_desc pcf_desc));
("pcf_loc", (this#lift_Location_t pcf_loc));
("pcf_attributes",
(this#lift_Parsetree_attributes pcf_attributes))] : Parsetree.class_field
->
'res)
method lift_Parsetree_class_field_desc :
Parsetree.class_field_desc -> 'res=
(function
| Parsetree.Pcf_inherit (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.class_field_desc"
("Pcf_inherit",
[this#lift_override_flag x0;
this#lift_Parsetree_class_expr x1;
this#lift_option (fun x -> this#lift_loc this#string x) x2])
| Parsetree.Pcf_val x0 ->
this#constr "Ast_409.Parsetree.class_field_desc"
("Pcf_val",
[(let (x0, x1, x2) = x0 in
this#tuple
[this#lift_loc this#lift_label x0;
this#lift_mutable_flag x1;
this#lift_Parsetree_class_field_kind x2])])
| Parsetree.Pcf_method x0 ->
this#constr "Ast_409.Parsetree.class_field_desc"
("Pcf_method",
[(let (x0, x1, x2) = x0 in
this#tuple
[this#lift_loc this#lift_label x0;
this#lift_private_flag x1;
this#lift_Parsetree_class_field_kind x2])])
| Parsetree.Pcf_constraint x0 ->
this#constr "Ast_409.Parsetree.class_field_desc"
("Pcf_constraint",
[(let (x0, x1) = x0 in
this#tuple
[this#lift_Parsetree_core_type x0;
this#lift_Parsetree_core_type x1])])
| Parsetree.Pcf_initializer x0 ->
this#constr "Ast_409.Parsetree.class_field_desc"
("Pcf_initializer", [this#lift_Parsetree_expression x0])
| Parsetree.Pcf_attribute x0 ->
this#constr "Ast_409.Parsetree.class_field_desc"
("Pcf_attribute", [this#lift_Parsetree_attribute x0])
| Parsetree.Pcf_extension x0 ->
this#constr "Ast_409.Parsetree.class_field_desc"
("Pcf_extension", [this#lift_Parsetree_extension x0]) :
Parsetree.class_field_desc -> 'res)
method lift_Parsetree_class_field_kind :
Parsetree.class_field_kind -> 'res=
(function
| Parsetree.Cfk_virtual x0 ->
this#constr "Ast_409.Parsetree.class_field_kind"
("Cfk_virtual", [this#lift_Parsetree_core_type x0])
| Parsetree.Cfk_concrete (x0, x1) ->
this#constr "Ast_409.Parsetree.class_field_kind"
("Cfk_concrete",
[this#lift_override_flag x0;
this#lift_Parsetree_expression x1]) : Parsetree.class_field_kind
-> 'res)
method lift_Parsetree_open_declaration :
Parsetree.open_declaration -> 'res=
(fun x ->
this#lift_Parsetree_open_infos this#lift_Parsetree_module_expr x :
Parsetree.open_declaration -> 'res)
method lift_Parsetree_module_binding :
Parsetree.module_binding -> 'res=
(fun
{ Parsetree.pmb_name = pmb_name;
Parsetree.pmb_expr = pmb_expr;
Parsetree.pmb_attributes = pmb_attributes;
Parsetree.pmb_loc = pmb_loc }
->
this#record "Ast_409.Parsetree.module_binding"
[("pmb_name", (this#lift_loc this#string pmb_name));
("pmb_expr", (this#lift_Parsetree_module_expr pmb_expr));
("pmb_attributes",
(this#lift_Parsetree_attributes pmb_attributes));
("pmb_loc", (this#lift_Location_t pmb_loc))] : Parsetree.module_binding
-> 'res)
method lift_Parsetree_module_expr :
Parsetree.module_expr -> 'res=
(fun
{ Parsetree.pmod_desc = pmod_desc;
Parsetree.pmod_loc = pmod_loc;
Parsetree.pmod_attributes = pmod_attributes }
->
this#record "Ast_409.Parsetree.module_expr"
[("pmod_desc", (this#lift_Parsetree_module_expr_desc pmod_desc));
("pmod_loc", (this#lift_Location_t pmod_loc));
("pmod_attributes",
(this#lift_Parsetree_attributes pmod_attributes))] : Parsetree.module_expr
->
'res)
method lift_Parsetree_module_expr_desc :
Parsetree.module_expr_desc -> 'res=
(function
| Parsetree.Pmod_ident x0 ->
this#constr "Ast_409.Parsetree.module_expr_desc"
("Pmod_ident", [this#lift_loc this#lift_Longident_t x0])
| Parsetree.Pmod_structure x0 ->
this#constr "Ast_409.Parsetree.module_expr_desc"
("Pmod_structure", [this#lift_Parsetree_structure x0])
| Parsetree.Pmod_functor (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.module_expr_desc"
("Pmod_functor",
[this#lift_loc this#string x0;
this#lift_option this#lift_Parsetree_module_type x1;
this#lift_Parsetree_module_expr x2])
| Parsetree.Pmod_apply (x0, x1) ->
this#constr "Ast_409.Parsetree.module_expr_desc"
("Pmod_apply",
[this#lift_Parsetree_module_expr x0;
this#lift_Parsetree_module_expr x1])
| Parsetree.Pmod_constraint (x0, x1) ->
this#constr "Ast_409.Parsetree.module_expr_desc"
("Pmod_constraint",
[this#lift_Parsetree_module_expr x0;
this#lift_Parsetree_module_type x1])
| Parsetree.Pmod_unpack x0 ->
this#constr "Ast_409.Parsetree.module_expr_desc"
("Pmod_unpack", [this#lift_Parsetree_expression x0])
| Parsetree.Pmod_extension x0 ->
this#constr "Ast_409.Parsetree.module_expr_desc"
("Pmod_extension", [this#lift_Parsetree_extension x0]) :
Parsetree.module_expr_desc -> 'res)
method lift_Parsetree_module_type :
Parsetree.module_type -> 'res=
(fun
{ Parsetree.pmty_desc = pmty_desc;
Parsetree.pmty_loc = pmty_loc;
Parsetree.pmty_attributes = pmty_attributes }
->
this#record "Ast_409.Parsetree.module_type"
[("pmty_desc", (this#lift_Parsetree_module_type_desc pmty_desc));
("pmty_loc", (this#lift_Location_t pmty_loc));
("pmty_attributes",
(this#lift_Parsetree_attributes pmty_attributes))] : Parsetree.module_type
->
'res)
method lift_Parsetree_module_type_desc :
Parsetree.module_type_desc -> 'res=
(function
| Parsetree.Pmty_ident x0 ->
this#constr "Ast_409.Parsetree.module_type_desc"
("Pmty_ident", [this#lift_loc this#lift_Longident_t x0])
| Parsetree.Pmty_signature x0 ->
this#constr "Ast_409.Parsetree.module_type_desc"
("Pmty_signature", [this#lift_Parsetree_signature x0])
| Parsetree.Pmty_functor (x0, x1, x2) ->
this#constr "Ast_409.Parsetree.module_type_desc"
("Pmty_functor",
[this#lift_loc this#string x0;
this#lift_option this#lift_Parsetree_module_type x1;
this#lift_Parsetree_module_type x2])
| Parsetree.Pmty_with (x0, x1) ->
this#constr "Ast_409.Parsetree.module_type_desc"
("Pmty_with",
[this#lift_Parsetree_module_type x0;
this#list (List.map this#lift_Parsetree_with_constraint x1)])
| Parsetree.Pmty_typeof x0 ->
this#constr "Ast_409.Parsetree.module_type_desc"
("Pmty_typeof", [this#lift_Parsetree_module_expr x0])
| Parsetree.Pmty_extension x0 ->
this#constr "Ast_409.Parsetree.module_type_desc"
("Pmty_extension", [this#lift_Parsetree_extension x0])
| Parsetree.Pmty_alias x0 ->
this#constr "Ast_409.Parsetree.module_type_desc"
("Pmty_alias", [this#lift_loc this#lift_Longident_t x0]) :
Parsetree.module_type_desc -> 'res)
method lift_Parsetree_with_constraint :
Parsetree.with_constraint -> 'res=
(function
| Parsetree.Pwith_type (x0, x1) ->
this#constr "Ast_409.Parsetree.with_constraint"
("Pwith_type",
[this#lift_loc this#lift_Longident_t x0;
this#lift_Parsetree_type_declaration x1])
| Parsetree.Pwith_module (x0, x1) ->
this#constr "Ast_409.Parsetree.with_constraint"
("Pwith_module",
[this#lift_loc this#lift_Longident_t x0;
this#lift_loc this#lift_Longident_t x1])
| Parsetree.Pwith_typesubst (x0, x1) ->
this#constr "Ast_409.Parsetree.with_constraint"
("Pwith_typesubst",
[this#lift_loc this#lift_Longident_t x0;
this#lift_Parsetree_type_declaration x1])
| Parsetree.Pwith_modsubst (x0, x1) ->
this#constr "Ast_409.Parsetree.with_constraint"
("Pwith_modsubst",
[this#lift_loc this#lift_Longident_t x0;
this#lift_loc this#lift_Longident_t x1]) : Parsetree.with_constraint
-> 'res)
method lift_Parsetree_signature : Parsetree.signature -> 'res=
(fun x -> this#list (List.map this#lift_Parsetree_signature_item x) :
Parsetree.signature -> 'res)
method lift_Parsetree_signature_item :
Parsetree.signature_item -> 'res=
(fun
{ Parsetree.psig_desc = psig_desc;
Parsetree.psig_loc = psig_loc }
->
this#record "Ast_409.Parsetree.signature_item"
[("psig_desc",
(this#lift_Parsetree_signature_item_desc psig_desc));
("psig_loc", (this#lift_Location_t psig_loc))] : Parsetree.signature_item
-> 'res)
method lift_Parsetree_signature_item_desc :
Parsetree.signature_item_desc -> 'res=
(function
| Parsetree.Psig_value x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_value", [this#lift_Parsetree_value_description x0])
| Parsetree.Psig_type (x0, x1) ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_type",
[this#lift_rec_flag x0;
this#list (List.map this#lift_Parsetree_type_declaration x1)])
| Parsetree.Psig_typesubst x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_typesubst",
[this#list (List.map this#lift_Parsetree_type_declaration x0)])
| Parsetree.Psig_typext x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_typext", [this#lift_Parsetree_type_extension x0])
| Parsetree.Psig_exception x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_exception", [this#lift_Parsetree_type_exception x0])
| Parsetree.Psig_module x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_module", [this#lift_Parsetree_module_declaration x0])
| Parsetree.Psig_modsubst x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_modsubst", [this#lift_Parsetree_module_substitution x0])
| Parsetree.Psig_recmodule x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_recmodule",
[this#list
(List.map this#lift_Parsetree_module_declaration x0)])
| Parsetree.Psig_modtype x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_modtype",
[this#lift_Parsetree_module_type_declaration x0])
| Parsetree.Psig_open x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_open", [this#lift_Parsetree_open_description x0])
| Parsetree.Psig_include x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_include", [this#lift_Parsetree_include_description x0])
| Parsetree.Psig_class x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_class",
[this#list (List.map this#lift_Parsetree_class_description x0)])
| Parsetree.Psig_class_type x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_class_type",
[this#list
(List.map this#lift_Parsetree_class_type_declaration x0)])
| Parsetree.Psig_attribute x0 ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_attribute", [this#lift_Parsetree_attribute x0])
| Parsetree.Psig_extension (x0, x1) ->
this#constr "Ast_409.Parsetree.signature_item_desc"
("Psig_extension",
[this#lift_Parsetree_extension x0;
this#lift_Parsetree_attributes x1]) : Parsetree.signature_item_desc
-> 'res)
method lift_Parsetree_class_type_declaration :
Parsetree.class_type_declaration -> 'res=
(fun x ->
this#lift_Parsetree_class_infos this#lift_Parsetree_class_type x :
Parsetree.class_type_declaration -> 'res)
method lift_Parsetree_class_description :
Parsetree.class_description -> 'res=
(fun x ->
this#lift_Parsetree_class_infos this#lift_Parsetree_class_type x :
Parsetree.class_description -> 'res)
method lift_Parsetree_class_type : Parsetree.class_type -> 'res=
(fun
{ Parsetree.pcty_desc = pcty_desc;
Parsetree.pcty_loc = pcty_loc;
Parsetree.pcty_attributes = pcty_attributes }
->
this#record "Ast_409.Parsetree.class_type"
[("pcty_desc", (this#lift_Parsetree_class_type_desc pcty_desc));
("pcty_loc", (this#lift_Location_t pcty_loc));
("pcty_attributes",
(this#lift_Parsetree_attributes pcty_attributes))] : Parsetree.class_type
->
'res)
method lift_Parsetree_class_type_desc :
Parsetree.class_type_desc -> 'res=
(function
| Parsetree.Pcty_constr (x0, x1) ->
this#constr "Ast_409.Parsetree.class_type_desc"
("Pcty_constr",
[this#lift_loc this#lift_Longident_t x0;
this#list (List.map this#lift_Parsetree_core_type x1)])
| Parsetree.Pcty_signature x0 ->
this#constr "Ast_409.Parsetree.class_type_desc"
("Pcty_signature", [this#lift_Parsetree_class_signature x0])