Source

ocamlspot / ttfold.ml

camlspotter d0e75b7 












camlspotter 1fd4dcd 




camlspotter a32a155 




































































































































































































































































































































































































































































































































































































camlspotter 1fd4dcd 
camlspotter a32a155 








camlspotter 1fd4dcd 
  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
(***********************************************************************)
(*                                                                     *)
(*                            OCamlSpotter                             *)
(*                                                                     *)
(*                             Jun FURUSE                              *)
(*                                                                     *)
(*   Copyright 2008-2012 Jun Furuse. All rights reserved.              *)
(*   This file is distributed under the terms of the GNU Library       *)
(*   General Public License, with the special exception on linking     *)
(*   described in file LICENSE.                                        *)
(*                                                                     *)
(***********************************************************************)

open Asttypes
open Types
open Typedtree
  
class fold =
  object ((self : 'self))
    method ref : 'a1. ('self -> 'a1 -> 'self) -> 'a1 ref -> 'self = 
      fun fa r -> fa self !r
    method option : 'a1. ('self -> 'a1 -> 'self) -> 'a1 option -> 'self =
      fun fa -> function
        | None -> self
        | Some v -> fa self v 
    method list : 'a1. ('self -> 'a1 -> 'self) -> 'a1 list -> 'self =
      fun fa l -> List.fold_left fa self l
    method pattern : pattern -> 'self =
      fun __value ->
        let self = self#pattern_desc __value.pat_desc in
        let self =
          self#list
            (fun self (__x1, __x2) -> let self = self#pat_extra __x1 in self)
            __value.pat_extra
        in self
    method pat_extra : pat_extra -> 'self =
      fun __value ->
        match __value with
        | Tpat_constraint __x1 -> let self = self#core_type __x1 in self
        | Tpat_type (__x1, __x2) -> self
        | Tpat_unpack -> self
    method pattern_desc : pattern_desc -> 'self =
      fun __value ->
        match __value with
        | Tpat_any -> self
        | Tpat_var (__x1, __x2) -> self
        | Tpat_alias (__x1, __x2, __x3) ->
            let self = self#pattern __x1 in self
        | Tpat_constant __x1 -> self
        | Tpat_tuple __x1 ->
            let self = self#list (fun self -> self#pattern) __x1 in self
        | Tpat_construct (__x1, __x2, __x3, __x4, __x5) ->
            let self = self#list (fun self -> self#pattern) __x4 in self
        | Tpat_variant (__x1, __x2, __x3) ->
            let self = self#option (fun self -> self#pattern) __x2 in
            let self = self#ref (fun self _ -> self) __x3 in self
        | Tpat_record (__x1, __x2) ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3, __x4) ->
                   let self = self#pattern __x4 in self)
                __x1
            in self
        | Tpat_array __x1 ->
            let self = self#list (fun self -> self#pattern) __x1 in self
        | Tpat_or (__x1, __x2, __x3) ->
            let self = self#pattern __x1 in
            let self = self#pattern __x2 in
            let self = self#option (fun self _ -> self) __x3 in self
        | Tpat_lazy __x1 -> let self = self#pattern __x1 in self
    method expression : expression -> 'self =
      fun __value ->
        let self = self#expression_desc __value.exp_desc in
        let self =
          self#list
            (fun self (__x1, __x2) -> let self = self#exp_extra __x1 in self)
            __value.exp_extra
        in self
    method exp_extra : exp_extra -> 'self =
      fun __value ->
        match __value with
        | Texp_constraint (__x1, __x2) ->
            let self = self#option (fun self -> self#core_type) __x1 in
            let self = self#option (fun self -> self#core_type) __x2 in self
        | Texp_open (__x1, __x2, __x3) -> self
        | Texp_poly __x1 ->
            let self = self#option (fun self -> self#core_type) __x1 in self
        | Texp_newtype __x1 -> self
    method expression_desc : expression_desc -> 'self =
      fun __value ->
        match __value with
        | Texp_ident (__x1, __x2, __x3) -> self
        | Texp_constant __x1 -> self
        | Texp_let (__x1, __x2, __x3) ->
            let self =
              self#list
                (fun self (__x1, __x2) ->
                   let self = self#pattern __x1 in
                   let self = self#expression __x2 in self)
                __x2 in
            let self = self#expression __x3 in self
        | Texp_function (__x1, __x2, __x3) ->
            let self =
              self#list
                (fun self (__x1, __x2) ->
                   let self = self#pattern __x1 in
                   let self = self#expression __x2 in self)
                __x2
            in self
        | Texp_apply (__x1, __x2) ->
            let self = self#expression __x1 in
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#option (fun self -> self#expression) __x2
                   in self)
                __x2
            in self
        | Texp_match (__x1, __x2, __x3) ->
            let self = self#expression __x1 in
            let self =
              self#list
                (fun self (__x1, __x2) ->
                   let self = self#pattern __x1 in
                   let self = self#expression __x2 in self)
                __x2
            in self
        | Texp_try (__x1, __x2) ->
            let self = self#expression __x1 in
            let self =
              self#list
                (fun self (__x1, __x2) ->
                   let self = self#pattern __x1 in
                   let self = self#expression __x2 in self)
                __x2
            in self
        | Texp_tuple __x1 ->
            let self = self#list (fun self -> self#expression) __x1 in self
        | Texp_construct (__x1, __x2, __x3, __x4, __x5) ->
            let self = self#list (fun self -> self#expression) __x4 in self
        | Texp_variant (__x1, __x2) ->
            let self = self#option (fun self -> self#expression) __x2 in self
        | Texp_record (__x1, __x2) ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3, __x4) ->
                   let self = self#expression __x4 in self)
                __x1 in
            let self = self#option (fun self -> self#expression) __x2 in self
        | Texp_field (__x1, __x2, __x3, __x4) ->
            let self = self#expression __x1 in self
        | Texp_setfield (__x1, __x2, __x3, __x4, __x5) ->
            let self = self#expression __x1 in
            let self = self#expression __x5 in self
        | Texp_array __x1 ->
            let self = self#list (fun self -> self#expression) __x1 in self
        | Texp_ifthenelse (__x1, __x2, __x3) ->
            let self = self#expression __x1 in
            let self = self#expression __x2 in
            let self = self#option (fun self -> self#expression) __x3 in self
        | Texp_sequence (__x1, __x2) ->
            let self = self#expression __x1 in
            let self = self#expression __x2 in self
        | Texp_while (__x1, __x2) ->
            let self = self#expression __x1 in
            let self = self#expression __x2 in self
        | Texp_for (__x1, __x2, __x3, __x4, __x5, __x6) ->
            let self = self#expression __x3 in
            let self = self#expression __x4 in
            let self = self#expression __x6 in self
        | Texp_when (__x1, __x2) ->
            let self = self#expression __x1 in
            let self = self#expression __x2 in self
        | Texp_send (__x1, __x2, __x3) ->
            let self = self#expression __x1 in
            let self = self#meth __x2 in
            let self = self#option (fun self -> self#expression) __x3 in self
        | Texp_new (__x1, __x2, __x3) -> self
        | Texp_instvar (__x1, __x2, __x3) -> self
        | Texp_setinstvar (__x1, __x2, __x3, __x4) ->
            let self = self#expression __x4 in self
        | Texp_override (__x1, __x2) ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#expression __x3 in self)
                __x2
            in self
        | Texp_letmodule (__x1, __x2, __x3, __x4) ->
            let self = self#module_expr __x3 in
            let self = self#expression __x4 in self
        | Texp_assert __x1 -> let self = self#expression __x1 in self
        | Texp_assertfalse -> self
        | Texp_lazy __x1 -> let self = self#expression __x1 in self
        | Texp_object (__x1, __x2) ->
            let self = self#class_structure __x1 in
            let self = self#list (fun self _ -> self) __x2 in self
        | Texp_pack __x1 -> let self = self#module_expr __x1 in self
    method meth : meth -> 'self = fun __value -> self
    method class_expr : class_expr -> 'self =
      fun __value -> let self = self#class_expr_desc __value.cl_desc in self
    method class_expr_desc : class_expr_desc -> 'self =
      fun __value ->
        match __value with
        | Tcl_ident (__x1, __x2, __x3) ->
            let self = self#list (fun self -> self#core_type) __x3 in self
        | Tcl_structure __x1 -> let self = self#class_structure __x1 in self
        | Tcl_fun (__x1, __x2, __x3, __x4, __x5) ->
            let self = self#pattern __x2 in
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#expression __x3 in self)
                __x3 in
            let self = self#class_expr __x4 in self
        | Tcl_apply (__x1, __x2) ->
            let self = self#class_expr __x1 in
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#option (fun self -> self#expression) __x2
                   in self)
                __x2
            in self
        | Tcl_let (__x1, __x2, __x3, __x4) ->
            let self =
              self#list
                (fun self (__x1, __x2) ->
                   let self = self#pattern __x1 in
                   let self = self#expression __x2 in self)
                __x2 in
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#expression __x3 in self)
                __x3 in
            let self = self#class_expr __x4 in self
        | Tcl_constraint (__x1, __x2, __x3, __x4, __x5) ->
            let self = self#class_expr __x1 in
            let self = self#option (fun self -> self#class_type) __x2 in
            let self = self#list (fun self _ -> self) __x3 in
            let self = self#list (fun self _ -> self) __x4 in self
    method class_structure : class_structure -> 'self =
      fun __value ->
        let self = self#pattern __value.cstr_pat in
        let self =
          self#list (fun self -> self#class_field) __value.cstr_fields
        in self
    method class_field : class_field -> 'self =
      fun __value -> let self = self#class_field_desc __value.cf_desc in self
    method class_field_kind : class_field_kind -> 'self =
      fun __value ->
        match __value with
        | Tcfk_virtual __x1 -> let self = self#core_type __x1 in self
        | Tcfk_concrete __x1 -> let self = self#expression __x1 in self
    method class_field_desc : class_field_desc -> 'self =
      fun __value ->
        match __value with
        | Tcf_inher (__x1, __x2, __x3, __x4, __x5) ->
            let self = self#class_expr __x2 in
            let self = self#option (fun self _ -> self) __x3 in
            let self = self#list (fun self (__x1, __x2) -> self) __x4 in
            let self = self#list (fun self (__x1, __x2) -> self) __x5 in self
        | Tcf_val (__x1, __x2, __x3, __x4, __x5, __x6) ->
            let self = self#class_field_kind __x5 in self
        | Tcf_meth (__x1, __x2, __x3, __x4, __x5) ->
            let self = self#class_field_kind __x4 in self
        | Tcf_constr (__x1, __x2) ->
            let self = self#core_type __x1 in
            let self = self#core_type __x2 in self
        | Tcf_init __x1 -> let self = self#expression __x1 in self
    method module_expr : module_expr -> 'self =
      fun __value ->
        let self = self#module_expr_desc __value.mod_desc in self
    method module_type_constraint : module_type_constraint -> 'self =
      fun __value ->
        match __value with
        | Tmodtype_implicit -> self
        | Tmodtype_explicit __x1 -> let self = self#module_type __x1 in self
    method module_expr_desc : module_expr_desc -> 'self =
      fun __value ->
        match __value with
        | Tmod_ident (__x1, __x2) -> self
        | Tmod_structure __x1 -> let self = self#structure __x1 in self
        | Tmod_functor (__x1, __x2, __x3, __x4) ->
            let self = self#module_type __x3 in
            let self = self#module_expr __x4 in self
        | Tmod_apply (__x1, __x2, __x3) ->
            let self = self#module_expr __x1 in
            let self = self#module_expr __x2 in
            let self = self#module_coercion __x3 in self
        | Tmod_constraint (__x1, __x2, __x3, __x4) ->
            let self = self#module_expr __x1 in
            let self = self#module_type_constraint __x3 in
            let self = self#module_coercion __x4 in self
        | Tmod_unpack (__x1, __x2) -> let self = self#expression __x1 in self
    method structure : structure -> 'self =
      fun __value ->
        let self =
          self#list (fun self -> self#structure_item) __value.str_items
        in self
    method structure_item : structure_item -> 'self =
      fun __value ->
        let self = self#structure_item_desc __value.str_desc in self
    method structure_item_desc : structure_item_desc -> 'self =
      fun __value ->
        match __value with
        | Tstr_eval __x1 -> let self = self#expression __x1 in self
        | Tstr_value (__x1, __x2) ->
            let self =
              self#list
                (fun self (__x1, __x2) ->
                   let self = self#pattern __x1 in
                   let self = self#expression __x2 in self)
                __x2
            in self
        | Tstr_primitive (__x1, __x2, __x3) ->
            let self = self#value_description __x3 in self
        | Tstr_type __x1 ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#type_declaration __x3 in self)
                __x1
            in self
        | Tstr_exception (__x1, __x2, __x3) ->
            let self = self#exception_declaration __x3 in self
        | Tstr_exn_rebind (__x1, __x2, __x3, __x4) -> self
        | Tstr_module (__x1, __x2, __x3) ->
            let self = self#module_expr __x3 in self
        | Tstr_recmodule __x1 ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3, __x4) ->
                   let self = self#module_type __x3 in
                   let self = self#module_expr __x4 in self)
                __x1
            in self
        | Tstr_modtype (__x1, __x2, __x3) ->
            let self = self#module_type __x3 in self
        | Tstr_open (__x1, __x2) -> self
        | Tstr_class __x1 ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#class_declaration __x1 in
                   let self = self#list (fun self _ -> self) __x2 in self)
                __x1
            in self
        | Tstr_class_type __x1 ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#class_type_declaration __x3 in self)
                __x1
            in self
        | Tstr_include (__x1, __x2) ->
            let self = self#module_expr __x1 in
            let self = self#list (fun self _ -> self) __x2 in self
    method module_coercion : module_coercion -> 'self =
      fun __value ->
        match __value with
        | Tcoerce_none -> self
        | Tcoerce_structure __x1 ->
            let self =
              self#list
                (fun self (__x1, __x2) ->
                   let self = self#module_coercion __x2 in self)
                __x1
            in self
        | Tcoerce_functor (__x1, __x2) ->
            let self = self#module_coercion __x1 in
            let self = self#module_coercion __x2 in self
        | Tcoerce_primitive __x1 -> self
    method module_type : module_type -> 'self =
      fun __value ->
        let self = self#module_type_desc __value.mty_desc in self
    method module_type_desc : module_type_desc -> 'self =
      fun __value ->
        match __value with
        | Tmty_ident (__x1, __x2) -> self
        | Tmty_signature __x1 -> let self = self#signature __x1 in self
        | Tmty_functor (__x1, __x2, __x3, __x4) ->
            let self = self#module_type __x3 in
            let self = self#module_type __x4 in self
        | Tmty_with (__x1, __x2) ->
            let self = self#module_type __x1 in
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#with_constraint __x3 in self)
                __x2
            in self
        | Tmty_typeof __x1 -> let self = self#module_expr __x1 in self
    method signature : signature -> 'self =
      fun __value ->
        let self =
          self#list (fun self -> self#signature_item) __value.sig_items
        in self
    method signature_item : signature_item -> 'self =
      fun __value ->
        let self = self#signature_item_desc __value.sig_desc in self
    method signature_item_desc : signature_item_desc -> 'self =
      fun __value ->
        match __value with
        | Tsig_value (__x1, __x2, __x3) ->
            let self = self#value_description __x3 in self
        | Tsig_type __x1 ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#type_declaration __x3 in self)
                __x1
            in self
        | Tsig_exception (__x1, __x2, __x3) ->
            let self = self#exception_declaration __x3 in self
        | Tsig_module (__x1, __x2, __x3) ->
            let self = self#module_type __x3 in self
        | Tsig_recmodule __x1 ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3) ->
                   let self = self#module_type __x3 in self)
                __x1
            in self
        | Tsig_modtype (__x1, __x2, __x3) ->
            let self = self#modtype_declaration __x3 in self
        | Tsig_open (__x1, __x2) -> self
        | Tsig_include (__x1, __x2) ->
            let self = self#module_type __x1 in self
        | Tsig_class __x1 ->
            let self = self#list (fun self -> self#class_description) __x1
            in self
        | Tsig_class_type __x1 ->
            let self =
              self#list (fun self -> self#class_type_declaration) __x1
            in self
    method modtype_declaration : modtype_declaration -> 'self =
      fun __value ->
        match __value with
        | Tmodtype_abstract -> self
        | Tmodtype_manifest __x1 -> let self = self#module_type __x1 in self
    method with_constraint : with_constraint -> 'self =
      fun __value ->
        match __value with
        | Twith_type __x1 -> let self = self#type_declaration __x1 in self
        | Twith_module (__x1, __x2) -> self
        | Twith_typesubst __x1 ->
            let self = self#type_declaration __x1 in self
        | Twith_modsubst (__x1, __x2) -> self
    method core_type : core_type -> 'self =
      fun __value -> let self = self#core_type_desc __value.ctyp_desc in self
    method core_type_desc : core_type_desc -> 'self =
      fun __value ->
        match __value with
        | Ttyp_any -> self
        | Ttyp_var __x1 -> self
        | Ttyp_arrow (__x1, __x2, __x3) ->
            let self = self#core_type __x2 in
            let self = self#core_type __x3 in self
        | Ttyp_tuple __x1 ->
            let self = self#list (fun self -> self#core_type) __x1 in self
        | Ttyp_constr (__x1, __x2, __x3) ->
            let self = self#list (fun self -> self#core_type) __x3 in self
        | Ttyp_object __x1 ->
            let self = self#list (fun self -> self#core_field_type) __x1
            in self
        | Ttyp_class (__x1, __x2, __x3, __x4) ->
            let self = self#list (fun self -> self#core_type) __x3 in
            let self = self#list (fun self _ -> self) __x4 in self
        | Ttyp_alias (__x1, __x2) -> let self = self#core_type __x1 in self
        | Ttyp_variant (__x1, __x2, __x3) ->
            let self = self#list (fun self -> self#row_field) __x1 in
            let self = self#option (fun self -> self#list (fun self _ -> self)) __x3
            in self
        | Ttyp_poly (__x1, __x2) ->
            let self = self#list (fun self _ -> self) __x1 in
            let self = self#core_type __x2 in self
        | Ttyp_package __x1 -> let self = self#package_type __x1 in self
    method package_type : package_type -> 'self =
      fun __value ->
        let self =
          self#list
            (fun self (__x1, __x2) -> let self = self#core_type __x2 in self)
            __value.pack_fields
        in self
    method core_field_type : core_field_type -> 'self =
      fun __value ->
        let self = self#core_field_desc __value.field_desc in self
    method core_field_desc : core_field_desc -> 'self =
      fun __value ->
        match __value with
        | Tcfield (__x1, __x2) -> let self = self#core_type __x2 in self
        | Tcfield_var -> self
    method row_field : row_field -> 'self =
      fun __value ->
        match __value with
        | Ttag (__x1, __x2, __x3) ->
            let self = self#list (fun self -> self#core_type) __x3 in self
        | Tinherit __x1 -> let self = self#core_type __x1 in self
    method value_description : value_description -> 'self =
      fun __value ->
        let self = self#core_type __value.val_desc in
        let self = self#list (fun self _ -> self) __value.val_prim in self
    method type_declaration : type_declaration -> 'self =
      fun __value ->
        let self =
          self#list (fun self -> self#option (fun self _ -> self)) __value.typ_params in
        let self =
          self#list
            (fun self (__x1, __x2, __x3) ->
               let self = self#core_type __x1 in
               let self = self#core_type __x2 in self)
            __value.typ_cstrs in
        let self = self#type_kind __value.typ_kind in
        let self =
          self#option (fun self -> self#core_type) __value.typ_manifest in
        let self =
          self#list (fun self (__x1, __x2) -> self) __value.typ_variance
        in self
    method type_kind : type_kind -> 'self =
      fun __value ->
        match __value with
        | Ttype_abstract -> self
        | Ttype_variant __x1 ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3, __x4) ->
                   let self = self#list (fun self -> self#core_type) __x3
                   in self)
                __x1
            in self
        | Ttype_record __x1 ->
            let self =
              self#list
                (fun self (__x1, __x2, __x3, __x4, __x5) ->
                   let self = self#core_type __x4 in self)
                __x1
            in self
    method exception_declaration : exception_declaration -> 'self =
      fun __value ->
        let self = self#list (fun self -> self#core_type) __value.exn_params
        in self
    method class_type : class_type -> 'self =
      fun __value ->
        let self = self#class_type_desc __value.cltyp_desc in self
    method class_type_desc : class_type_desc -> 'self =
      fun __value ->
        match __value with
        | Tcty_constr (__x1, __x2, __x3) ->
            let self = self#list (fun self -> self#core_type) __x3 in self
        | Tcty_signature __x1 -> let self = self#class_signature __x1 in self
        | Tcty_fun (__x1, __x2, __x3) ->
            let self = self#core_type __x2 in
            let self = self#class_type __x3 in self
    method class_signature : class_signature -> 'self =
      fun __value ->
        let self = self#core_type __value.csig_self in
        let self =
          self#list (fun self -> self#class_type_field) __value.csig_fields
        in self
    method class_type_field : class_type_field -> 'self =
      fun __value ->
        let self = self#class_type_field_desc __value.ctf_desc in self
    method class_type_field_desc : class_type_field_desc -> 'self =
      fun __value ->
        match __value with
        | Tctf_inher __x1 -> let self = self#class_type __x1 in self
        | Tctf_val __x1 ->
            let self =
              (fun (__x1, __x2, __x3, __x4) ->
                 let self = self#core_type __x4 in self)
                __x1
            in self
        | Tctf_virt __x1 ->
            let self =
              (fun (__x1, __x2, __x3) ->
                 let self = self#core_type __x3 in self)
                __x1
            in self
        | Tctf_meth __x1 ->
            let self =
              (fun (__x1, __x2, __x3) ->
                 let self = self#core_type __x3 in self)
                __x1
            in self
        | Tctf_cstr __x1 ->
            let self =
              (fun (__x1, __x2) ->
                 let self = self#core_type __x1 in
                 let self = self#core_type __x2 in self)
                __x1
            in self
    method class_declaration : class_declaration -> 'self =
      fun __value -> self#class_infos (fun self -> self#class_expr) __value
    method class_description : class_description -> 'self =
      fun __value -> self#class_infos (fun self -> self#class_type) __value
    method class_type_declaration : class_type_declaration -> 'self =
      fun __value -> self#class_infos (fun self -> self#class_type) __value
    method class_infos :
      'a. ('self -> 'a -> 'self) -> 'a class_infos -> 'self =
      fun __f_a __value ->
        let self =
          (fun (__x1, __x2) -> let self = self#list (fun self _ -> self) __x1 in self)
            __value.ci_params in
        let self = __f_a self __value.ci_expr in
        let self =
          self#list (fun self (__x1, __x2) -> self) __value.ci_variance
        in self
  end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.