1Asttypes(3)                      OCaml library                     Asttypes(3)
2
3
4

NAME

6       Asttypes - Auxiliary AST types used by parsetree and typedtree.
7

Module

9       Module   Asttypes
10

Documentation

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