1Asttypes(3) OCaml library Asttypes(3)
2
3
4
6 Asttypes - Auxiliary AST types used by parsetree and typedtree.
7
9 Module Asttypes
10
12 Module Asttypes
13 : sig end
14
15
16 Auxiliary AST types used by parsetree and typedtree.
17
18
19
20
21
22 type constant =
23 | Const_int of int
24 | Const_char of char
25 | Const_string of string * string option
26 | Const_float of string
27 | Const_int32 of int32
28 | Const_int64 of int64
29 | Const_nativeint of nativeint
30
31
32
33
34 type rec_flag =
35 | Nonrecursive
36 | Recursive
37
38
39
40
41 type direction_flag =
42 | Upto
43 | Downto
44
45
46
47
48 type private_flag =
49 | Private
50 | Public
51
52
53
54
55 type mutable_flag =
56 | Immutable
57 | Mutable
58
59
60
61
62 type virtual_flag =
63 | Virtual
64 | Concrete
65
66
67
68
69 type override_flag =
70 | Override
71 | Fresh
72
73
74
75
76 type closed_flag =
77 | Closed
78 | Open
79
80
81
82
83 type label = string
84
85
86
87
88 type arg_label =
89 | Nolabel
90 | Labelled of string
91 | Optional of string
92
93
94
95
96 type 'a loc = 'a Location.loc = {
97 txt : 'a ;
98 loc : Location.t ;
99 }
100
101
102
103
104 type variance =
105 | Covariant
106 | Contravariant
107 | Invariant
108
109
110
111
112
113
114
115OCamldoc 2018-07-14 Asttypes(3)