-
Notifications
You must be signed in to change notification settings - Fork 9
/
ast_generic_v1_j.mli
1985 lines (1549 loc) · 59.5 KB
/
ast_generic_v1_j.mli
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
(* Auto-generated from "ast_generic_v1.atd" *)
[@@@ocaml.warning "-27-32-33-35-39"]
type class_kind = Ast_generic_v1_t.class_kind
type concat_string_kind = Ast_generic_v1_t.concat_string_kind
type const_type = Ast_generic_v1_t.const_type
type container_operator = Ast_generic_v1_t.container_operator
type function_kind = Ast_generic_v1_t.function_kind
type incr_decr = Ast_generic_v1_t.incr_decr
type keyword_attribute = Ast_generic_v1_t.keyword_attribute
type operator = Ast_generic_v1_t.operator
type prefix_postfix = Ast_generic_v1_t.prefix_postfix
type sid = Ast_generic_v1_t.sid
type special = Ast_generic_v1_t.special
type token_location = Ast_generic_v1_t.token_location = {
str: string;
charpos: int;
line: int;
column: int;
filename: string
}
type token = Ast_generic_v1_t.token
type tok = Ast_generic_v1_t.tok
type 'a bracket = 'a Ast_generic_v1_t.bracket
type sc = Ast_generic_v1_t.sc
type variance = Ast_generic_v1_t.variance
type 'a wrap_ = 'a Ast_generic_v1_t.wrap_
type ident = Ast_generic_v1_t.ident
type dotted_ident = Ast_generic_v1_t.dotted_ident
type label = Ast_generic_v1_t.label
type literal = Ast_generic_v1_t.literal
type module_name = Ast_generic_v1_t.module_name
type resolved_name_kind = Ast_generic_v1_t.resolved_name_kind
type resolved_name = Ast_generic_v1_t.resolved_name
type todo_kind = Ast_generic_v1_t.todo_kind
type xml_kind = Ast_generic_v1_t.xml_kind
type alias = Ast_generic_v1_t.alias
and any = Ast_generic_v1_t.any
and argument = Ast_generic_v1_t.argument
and arguments = Ast_generic_v1_t.arguments
and attribute = Ast_generic_v1_t.attribute
and case = Ast_generic_v1_t.case
and case_and_body = Ast_generic_v1_t.case_and_body
and catch = Ast_generic_v1_t.catch
and catch_exn = Ast_generic_v1_t.catch_exn
and class_definition = Ast_generic_v1_t.class_definition = {
ckind: class_kind wrap_;
cextends: class_parent list;
cimplements: type_ list;
cmixins: type_ list;
cparams: parameters;
cbody: field list bracket
}
and class_parent = Ast_generic_v1_t.class_parent
and comprehension = Ast_generic_v1_t.comprehension
and condition = Ast_generic_v1_t.condition
and definition = Ast_generic_v1_t.definition
and definition_kind = Ast_generic_v1_t.definition_kind
and directive = Ast_generic_v1_t.directive
and entity = Ast_generic_v1_t.entity = {
name: entity_name;
attrs: attribute list;
tparams: type_parameters
}
and entity_name = Ast_generic_v1_t.entity_name
and enum_entry_definition = Ast_generic_v1_t.enum_entry_definition = {
ee_args: arguments option;
ee_body: field list bracket option
}
and expr = Ast_generic_v1_t.expr
and field = Ast_generic_v1_t.field
and field_name = Ast_generic_v1_t.field_name
and finally = Ast_generic_v1_t.finally
and for_each = Ast_generic_v1_t.for_each
and for_header = Ast_generic_v1_t.for_header
and for_or_if_comp = Ast_generic_v1_t.for_or_if_comp
and for_var_or_expr = Ast_generic_v1_t.for_var_or_expr
and function_body = Ast_generic_v1_t.function_body
and function_definition = Ast_generic_v1_t.function_definition = {
fkind: function_kind wrap_;
fparams: parameters;
frettype: type_ option;
fbody: function_body
}
and id_info = Ast_generic_v1_t.id_info = {
id_resolved: resolved_name option;
id_type: type_ option;
id_svalue: svalue option
}
and item = Ast_generic_v1_t.item
and label_ident = Ast_generic_v1_t.label_ident
and macro_definition = Ast_generic_v1_t.macro_definition = {
macroparams: ident list;
macrobody: any list
}
and module_definition = Ast_generic_v1_t.module_definition = {
mbody: module_definition_kind
}
and module_definition_kind = Ast_generic_v1_t.module_definition_kind
and multi_for_each = Ast_generic_v1_t.multi_for_each
and name = Ast_generic_v1_t.name
and or_type_element = Ast_generic_v1_t.or_type_element
and parameter = Ast_generic_v1_t.parameter
and parameter_classic = Ast_generic_v1_t.parameter_classic = {
pname: ident option;
ptype: type_ option;
pdefault: expr option;
pattrs: attribute list;
pinfo: id_info
}
and parameters = Ast_generic_v1_t.parameters
and pattern = Ast_generic_v1_t.pattern
and qualified_info = Ast_generic_v1_t.qualified_info = {
name_last: (ident * type_arguments option);
name_middle: qualifier option;
name_top: tok option;
name_info: id_info
}
and qualifier = Ast_generic_v1_t.qualifier
and stmt = Ast_generic_v1_t.stmt
and svalue = Ast_generic_v1_t.svalue
and type_ = Ast_generic_v1_t.type_
and type_argument = Ast_generic_v1_t.type_argument
and type_arguments = Ast_generic_v1_t.type_arguments
and type_definition = Ast_generic_v1_t.type_definition = {
tbody: type_definition_kind
}
and type_definition_kind = Ast_generic_v1_t.type_definition_kind
and type_parameter = Ast_generic_v1_t.type_parameter
and type_parameter_classic = Ast_generic_v1_t.type_parameter_classic = {
tp_id: ident;
tp_attrs: attribute list;
tp_bounds: type_ list;
tp_default: type_ option;
tp_variance: variance wrap_ option
}
and type_parameters = Ast_generic_v1_t.type_parameters
and variable_definition = Ast_generic_v1_t.variable_definition = {
vinit: expr option;
vtype: type_ option
}
and xml = Ast_generic_v1_t.xml = {
xml_kind: xml_kind;
xml_attrs: xml_attribute list;
xml_body: xml_body list
}
and xml_attr_value = Ast_generic_v1_t.xml_attr_value
and xml_attribute = Ast_generic_v1_t.xml_attribute
and xml_body = Ast_generic_v1_t.xml_body
type program = Ast_generic_v1_t.program
val write_class_kind :
Buffer.t -> class_kind -> unit
(** Output a JSON value of type {!type:class_kind}. *)
val string_of_class_kind :
?len:int -> class_kind -> string
(** Serialize a value of type {!type:class_kind}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_class_kind :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> class_kind
(** Input JSON data of type {!type:class_kind}. *)
val class_kind_of_string :
string -> class_kind
(** Deserialize JSON data of type {!type:class_kind}. *)
val write_concat_string_kind :
Buffer.t -> concat_string_kind -> unit
(** Output a JSON value of type {!type:concat_string_kind}. *)
val string_of_concat_string_kind :
?len:int -> concat_string_kind -> string
(** Serialize a value of type {!type:concat_string_kind}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_concat_string_kind :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> concat_string_kind
(** Input JSON data of type {!type:concat_string_kind}. *)
val concat_string_kind_of_string :
string -> concat_string_kind
(** Deserialize JSON data of type {!type:concat_string_kind}. *)
val write_const_type :
Buffer.t -> const_type -> unit
(** Output a JSON value of type {!type:const_type}. *)
val string_of_const_type :
?len:int -> const_type -> string
(** Serialize a value of type {!type:const_type}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_const_type :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> const_type
(** Input JSON data of type {!type:const_type}. *)
val const_type_of_string :
string -> const_type
(** Deserialize JSON data of type {!type:const_type}. *)
val write_container_operator :
Buffer.t -> container_operator -> unit
(** Output a JSON value of type {!type:container_operator}. *)
val string_of_container_operator :
?len:int -> container_operator -> string
(** Serialize a value of type {!type:container_operator}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_container_operator :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> container_operator
(** Input JSON data of type {!type:container_operator}. *)
val container_operator_of_string :
string -> container_operator
(** Deserialize JSON data of type {!type:container_operator}. *)
val write_function_kind :
Buffer.t -> function_kind -> unit
(** Output a JSON value of type {!type:function_kind}. *)
val string_of_function_kind :
?len:int -> function_kind -> string
(** Serialize a value of type {!type:function_kind}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_function_kind :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> function_kind
(** Input JSON data of type {!type:function_kind}. *)
val function_kind_of_string :
string -> function_kind
(** Deserialize JSON data of type {!type:function_kind}. *)
val write_incr_decr :
Buffer.t -> incr_decr -> unit
(** Output a JSON value of type {!type:incr_decr}. *)
val string_of_incr_decr :
?len:int -> incr_decr -> string
(** Serialize a value of type {!type:incr_decr}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_incr_decr :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> incr_decr
(** Input JSON data of type {!type:incr_decr}. *)
val incr_decr_of_string :
string -> incr_decr
(** Deserialize JSON data of type {!type:incr_decr}. *)
val write_keyword_attribute :
Buffer.t -> keyword_attribute -> unit
(** Output a JSON value of type {!type:keyword_attribute}. *)
val string_of_keyword_attribute :
?len:int -> keyword_attribute -> string
(** Serialize a value of type {!type:keyword_attribute}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_keyword_attribute :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> keyword_attribute
(** Input JSON data of type {!type:keyword_attribute}. *)
val keyword_attribute_of_string :
string -> keyword_attribute
(** Deserialize JSON data of type {!type:keyword_attribute}. *)
val write_operator :
Buffer.t -> operator -> unit
(** Output a JSON value of type {!type:operator}. *)
val string_of_operator :
?len:int -> operator -> string
(** Serialize a value of type {!type:operator}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_operator :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> operator
(** Input JSON data of type {!type:operator}. *)
val operator_of_string :
string -> operator
(** Deserialize JSON data of type {!type:operator}. *)
val write_prefix_postfix :
Buffer.t -> prefix_postfix -> unit
(** Output a JSON value of type {!type:prefix_postfix}. *)
val string_of_prefix_postfix :
?len:int -> prefix_postfix -> string
(** Serialize a value of type {!type:prefix_postfix}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_prefix_postfix :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> prefix_postfix
(** Input JSON data of type {!type:prefix_postfix}. *)
val prefix_postfix_of_string :
string -> prefix_postfix
(** Deserialize JSON data of type {!type:prefix_postfix}. *)
val write_sid :
Buffer.t -> sid -> unit
(** Output a JSON value of type {!type:sid}. *)
val string_of_sid :
?len:int -> sid -> string
(** Serialize a value of type {!type:sid}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_sid :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> sid
(** Input JSON data of type {!type:sid}. *)
val sid_of_string :
string -> sid
(** Deserialize JSON data of type {!type:sid}. *)
val write_special :
Buffer.t -> special -> unit
(** Output a JSON value of type {!type:special}. *)
val string_of_special :
?len:int -> special -> string
(** Serialize a value of type {!type:special}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_special :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> special
(** Input JSON data of type {!type:special}. *)
val special_of_string :
string -> special
(** Deserialize JSON data of type {!type:special}. *)
val write_token_location :
Buffer.t -> token_location -> unit
(** Output a JSON value of type {!type:token_location}. *)
val string_of_token_location :
?len:int -> token_location -> string
(** Serialize a value of type {!type:token_location}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_token_location :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> token_location
(** Input JSON data of type {!type:token_location}. *)
val token_location_of_string :
string -> token_location
(** Deserialize JSON data of type {!type:token_location}. *)
val write_token :
Buffer.t -> token -> unit
(** Output a JSON value of type {!type:token}. *)
val string_of_token :
?len:int -> token -> string
(** Serialize a value of type {!type:token}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_token :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> token
(** Input JSON data of type {!type:token}. *)
val token_of_string :
string -> token
(** Deserialize JSON data of type {!type:token}. *)
val write_tok :
Buffer.t -> tok -> unit
(** Output a JSON value of type {!type:tok}. *)
val string_of_tok :
?len:int -> tok -> string
(** Serialize a value of type {!type:tok}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_tok :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> tok
(** Input JSON data of type {!type:tok}. *)
val tok_of_string :
string -> tok
(** Deserialize JSON data of type {!type:tok}. *)
val write_bracket :
(Buffer.t -> 'a -> unit) ->
Buffer.t -> 'a bracket -> unit
(** Output a JSON value of type {!type:bracket}. *)
val string_of_bracket :
(Buffer.t -> 'a -> unit) ->
?len:int -> 'a bracket -> string
(** Serialize a value of type {!type:bracket}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_bracket :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'a) ->
Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'a bracket
(** Input JSON data of type {!type:bracket}. *)
val bracket_of_string :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'a) ->
string -> 'a bracket
(** Deserialize JSON data of type {!type:bracket}. *)
val write_sc :
Buffer.t -> sc -> unit
(** Output a JSON value of type {!type:sc}. *)
val string_of_sc :
?len:int -> sc -> string
(** Serialize a value of type {!type:sc}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_sc :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> sc
(** Input JSON data of type {!type:sc}. *)
val sc_of_string :
string -> sc
(** Deserialize JSON data of type {!type:sc}. *)
val write_variance :
Buffer.t -> variance -> unit
(** Output a JSON value of type {!type:variance}. *)
val string_of_variance :
?len:int -> variance -> string
(** Serialize a value of type {!type:variance}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_variance :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> variance
(** Input JSON data of type {!type:variance}. *)
val variance_of_string :
string -> variance
(** Deserialize JSON data of type {!type:variance}. *)
val write_wrap_ :
(Buffer.t -> 'a -> unit) ->
Buffer.t -> 'a wrap_ -> unit
(** Output a JSON value of type {!type:wrap_}. *)
val string_of_wrap_ :
(Buffer.t -> 'a -> unit) ->
?len:int -> 'a wrap_ -> string
(** Serialize a value of type {!type:wrap_}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_wrap_ :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'a) ->
Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'a wrap_
(** Input JSON data of type {!type:wrap_}. *)
val wrap__of_string :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'a) ->
string -> 'a wrap_
(** Deserialize JSON data of type {!type:wrap_}. *)
val write_ident :
Buffer.t -> ident -> unit
(** Output a JSON value of type {!type:ident}. *)
val string_of_ident :
?len:int -> ident -> string
(** Serialize a value of type {!type:ident}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_ident :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> ident
(** Input JSON data of type {!type:ident}. *)
val ident_of_string :
string -> ident
(** Deserialize JSON data of type {!type:ident}. *)
val write_dotted_ident :
Buffer.t -> dotted_ident -> unit
(** Output a JSON value of type {!type:dotted_ident}. *)
val string_of_dotted_ident :
?len:int -> dotted_ident -> string
(** Serialize a value of type {!type:dotted_ident}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_dotted_ident :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> dotted_ident
(** Input JSON data of type {!type:dotted_ident}. *)
val dotted_ident_of_string :
string -> dotted_ident
(** Deserialize JSON data of type {!type:dotted_ident}. *)
val write_label :
Buffer.t -> label -> unit
(** Output a JSON value of type {!type:label}. *)
val string_of_label :
?len:int -> label -> string
(** Serialize a value of type {!type:label}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_label :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> label
(** Input JSON data of type {!type:label}. *)
val label_of_string :
string -> label
(** Deserialize JSON data of type {!type:label}. *)
val write_literal :
Buffer.t -> literal -> unit
(** Output a JSON value of type {!type:literal}. *)
val string_of_literal :
?len:int -> literal -> string
(** Serialize a value of type {!type:literal}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_literal :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> literal
(** Input JSON data of type {!type:literal}. *)
val literal_of_string :
string -> literal
(** Deserialize JSON data of type {!type:literal}. *)
val write_module_name :
Buffer.t -> module_name -> unit
(** Output a JSON value of type {!type:module_name}. *)
val string_of_module_name :
?len:int -> module_name -> string
(** Serialize a value of type {!type:module_name}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_module_name :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> module_name
(** Input JSON data of type {!type:module_name}. *)
val module_name_of_string :
string -> module_name
(** Deserialize JSON data of type {!type:module_name}. *)
val write_resolved_name_kind :
Buffer.t -> resolved_name_kind -> unit
(** Output a JSON value of type {!type:resolved_name_kind}. *)
val string_of_resolved_name_kind :
?len:int -> resolved_name_kind -> string
(** Serialize a value of type {!type:resolved_name_kind}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_resolved_name_kind :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> resolved_name_kind
(** Input JSON data of type {!type:resolved_name_kind}. *)
val resolved_name_kind_of_string :
string -> resolved_name_kind
(** Deserialize JSON data of type {!type:resolved_name_kind}. *)
val write_resolved_name :
Buffer.t -> resolved_name -> unit
(** Output a JSON value of type {!type:resolved_name}. *)
val string_of_resolved_name :
?len:int -> resolved_name -> string
(** Serialize a value of type {!type:resolved_name}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_resolved_name :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> resolved_name
(** Input JSON data of type {!type:resolved_name}. *)
val resolved_name_of_string :
string -> resolved_name
(** Deserialize JSON data of type {!type:resolved_name}. *)
val write_todo_kind :
Buffer.t -> todo_kind -> unit
(** Output a JSON value of type {!type:todo_kind}. *)
val string_of_todo_kind :
?len:int -> todo_kind -> string
(** Serialize a value of type {!type:todo_kind}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_todo_kind :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> todo_kind
(** Input JSON data of type {!type:todo_kind}. *)
val todo_kind_of_string :
string -> todo_kind
(** Deserialize JSON data of type {!type:todo_kind}. *)
val write_xml_kind :
Buffer.t -> xml_kind -> unit
(** Output a JSON value of type {!type:xml_kind}. *)
val string_of_xml_kind :
?len:int -> xml_kind -> string
(** Serialize a value of type {!type:xml_kind}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_xml_kind :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> xml_kind
(** Input JSON data of type {!type:xml_kind}. *)
val xml_kind_of_string :
string -> xml_kind
(** Deserialize JSON data of type {!type:xml_kind}. *)
val write_alias :
Buffer.t -> alias -> unit
(** Output a JSON value of type {!type:alias}. *)
val string_of_alias :
?len:int -> alias -> string
(** Serialize a value of type {!type:alias}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_alias :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> alias
(** Input JSON data of type {!type:alias}. *)
val alias_of_string :
string -> alias
(** Deserialize JSON data of type {!type:alias}. *)
val write_any :
Buffer.t -> any -> unit
(** Output a JSON value of type {!type:any}. *)
val string_of_any :
?len:int -> any -> string
(** Serialize a value of type {!type:any}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_any :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> any
(** Input JSON data of type {!type:any}. *)
val any_of_string :
string -> any
(** Deserialize JSON data of type {!type:any}. *)
val write_argument :
Buffer.t -> argument -> unit
(** Output a JSON value of type {!type:argument}. *)
val string_of_argument :
?len:int -> argument -> string
(** Serialize a value of type {!type:argument}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_argument :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> argument
(** Input JSON data of type {!type:argument}. *)
val argument_of_string :
string -> argument
(** Deserialize JSON data of type {!type:argument}. *)
val write_arguments :
Buffer.t -> arguments -> unit
(** Output a JSON value of type {!type:arguments}. *)
val string_of_arguments :
?len:int -> arguments -> string
(** Serialize a value of type {!type:arguments}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_arguments :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> arguments
(** Input JSON data of type {!type:arguments}. *)
val arguments_of_string :
string -> arguments
(** Deserialize JSON data of type {!type:arguments}. *)
val write_attribute :
Buffer.t -> attribute -> unit
(** Output a JSON value of type {!type:attribute}. *)
val string_of_attribute :
?len:int -> attribute -> string
(** Serialize a value of type {!type:attribute}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_attribute :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> attribute
(** Input JSON data of type {!type:attribute}. *)
val attribute_of_string :
string -> attribute
(** Deserialize JSON data of type {!type:attribute}. *)
val write_case :
Buffer.t -> case -> unit
(** Output a JSON value of type {!type:case}. *)
val string_of_case :
?len:int -> case -> string
(** Serialize a value of type {!type:case}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_case :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> case
(** Input JSON data of type {!type:case}. *)
val case_of_string :
string -> case
(** Deserialize JSON data of type {!type:case}. *)
val write_case_and_body :
Buffer.t -> case_and_body -> unit
(** Output a JSON value of type {!type:case_and_body}. *)
val string_of_case_and_body :
?len:int -> case_and_body -> string
(** Serialize a value of type {!type:case_and_body}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_case_and_body :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> case_and_body
(** Input JSON data of type {!type:case_and_body}. *)
val case_and_body_of_string :
string -> case_and_body
(** Deserialize JSON data of type {!type:case_and_body}. *)
val write_catch :
Buffer.t -> catch -> unit
(** Output a JSON value of type {!type:catch}. *)
val string_of_catch :
?len:int -> catch -> string
(** Serialize a value of type {!type:catch}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_catch :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> catch
(** Input JSON data of type {!type:catch}. *)
val catch_of_string :
string -> catch
(** Deserialize JSON data of type {!type:catch}. *)
val write_catch_exn :
Buffer.t -> catch_exn -> unit
(** Output a JSON value of type {!type:catch_exn}. *)
val string_of_catch_exn :
?len:int -> catch_exn -> string
(** Serialize a value of type {!type:catch_exn}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_catch_exn :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> catch_exn
(** Input JSON data of type {!type:catch_exn}. *)
val catch_exn_of_string :
string -> catch_exn
(** Deserialize JSON data of type {!type:catch_exn}. *)
val write_class_definition :
Buffer.t -> class_definition -> unit
(** Output a JSON value of type {!type:class_definition}. *)
val string_of_class_definition :
?len:int -> class_definition -> string
(** Serialize a value of type {!type:class_definition}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_class_definition :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> class_definition
(** Input JSON data of type {!type:class_definition}. *)
val class_definition_of_string :
string -> class_definition
(** Deserialize JSON data of type {!type:class_definition}. *)
val write_class_parent :
Buffer.t -> class_parent -> unit
(** Output a JSON value of type {!type:class_parent}. *)
val string_of_class_parent :
?len:int -> class_parent -> string
(** Serialize a value of type {!type:class_parent}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_class_parent :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> class_parent
(** Input JSON data of type {!type:class_parent}. *)