1Ast_helper.Cf(3) OCaml library Ast_helper.Cf(3)
2
3
4
6 Ast_helper.Cf - Class fields
7
9 Module Ast_helper.Cf
10
12 Module Cf
13 : sig end
14
15
16 Class fields
17
18
19
20
21
22
23 val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> ?docs:Doc‐
24 strings.docs -> Parsetree.class_field_desc -> Parsetree.class_field
25
26
27
28
29 val attr : Parsetree.class_field -> Parsetree.attribute -> Parse‐
30 tree.class_field
31
32
33
34
35 val inherit_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast‐
36 types.override_flag -> Parsetree.class_expr -> Ast_helper.str option ->
37 Parsetree.class_field
38
39
40
41
42 val val_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
43 Ast_helper.str -> Asttypes.mutable_flag -> Parsetree.class_field_kind
44 -> Parsetree.class_field
45
46
47
48
49 val method_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
50 Ast_helper.str -> Asttypes.private_flag -> Parsetree.class_field_kind
51 -> Parsetree.class_field
52
53
54
55
56 val constraint_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
57 Parsetree.core_type -> Parsetree.core_type -> Parsetree.class_field
58
59
60
61
62 val initializer_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
63 Parsetree.expression -> Parsetree.class_field
64
65
66
67
68 val extension : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
69 Parsetree.extension -> Parsetree.class_field
70
71
72
73
74 val attribute : ?loc:Ast_helper.loc -> Parsetree.attribute -> Parse‐
75 tree.class_field
76
77
78
79
80 val text : Docstrings.text -> Parsetree.class_field list
81
82
83
84
85 val virtual_ : Parsetree.core_type -> Parsetree.class_field_kind
86
87
88
89
90 val concrete : Asttypes.override_flag -> Parsetree.expression -> Parse‐
91 tree.class_field_kind
92
93
94
95
96
97
98OCamldoc 2019-07-30 Ast_helper.Cf(3)