-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtt_mapper.mli
125 lines (123 loc) · 5.19 KB
/
tt_mapper.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
open Typedtree
class mapper :
object
method clear_type_table : unit
(*
This method should be called between any iteration on a typedtree.
Otherwise there's no way to certify that the right tree will be returned.
*)
(*
All the methods below are mappers into typedtrees.
Most of the type declarations may be found in the file typedtree.mli.
Methods starting with a t_ are mapping types described in types.mli
The other called modules can be found in parsing/ and typing/
*)
method class_declaration :
class_declaration -> class_declaration
method class_description :
class_description -> class_description
method class_expr : class_expr -> class_expr
method class_expr_desc :
class_expr_desc -> class_expr_desc
method class_field : class_field -> class_field
method class_field_desc :
class_field_desc -> class_field_desc
method class_field_kind :
class_field_kind -> class_field_kind
method class_signature :
class_signature -> class_signature
method class_structure :
class_structure -> class_structure
method class_type : class_type -> class_type
method class_type_declaration :
class_type_declaration -> class_type_declaration
method class_type_desc :
class_type_desc -> class_type_desc
method class_type_field :
class_type_field -> class_type_field
method class_type_field_desc :
class_type_field_desc -> class_type_field_desc
method constructor_description :
Types.constructor_description -> Types.constructor_description
method core_field_desc :
core_field_desc -> core_field_desc
method core_field_type :
core_field_type -> core_field_type
method core_type : core_type -> core_type
method ctypdesc : core_type_desc -> core_type_desc
method env : Env.t -> Env.t
method exception_declaration :
exception_declaration -> exception_declaration
method exp_extra : exp_extra -> exp_extra
method expression : expression -> expression
method expression_desc :
expression_desc -> expression_desc
method ident : Ident.t -> Ident.t
method label_description :
Types.label_description -> Types.label_description
method location : Location.t -> Location.t
method longident : Longident.t -> Longident.t
method longident_loc :
Longident.t Asttypes.loc -> Longident.t Asttypes.loc
method meth : meth -> meth
method modtype_declaration :
modtype_declaration -> modtype_declaration
method module_coercion :
module_coercion -> module_coercion
method module_expr : module_expr -> module_expr
method module_expr_desc :
module_expr_desc -> module_expr_desc
method module_type : module_type -> module_type
method module_type_constraint :
module_type_constraint -> module_type_constraint
method module_type_desc :
module_type_desc -> module_type_desc
method package_type : package_type -> package_type
method pat_extra : pat_extra -> pat_extra
method path : Path.t -> Path.t
method pattern : pattern -> pattern
method pattern_desc : pattern_desc -> pattern_desc
method row_field : row_field -> row_field
method signature : signature -> signature
method signature_item :
signature_item -> signature_item
method signature_item_desc :
signature_item_desc -> signature_item_desc
method string_loc : string Asttypes.loc -> string Asttypes.loc
method structure : structure -> structure
method structure_item :
structure_item -> structure_item
method structure_item_desc :
structure_item_desc -> structure_item_desc
method t_abbrev_memo : Types.abbrev_memo -> Types.abbrev_memo
method t_class_declaration :
Types.class_declaration -> Types.class_declaration
method t_class_signature : Types.class_signature -> Types.class_signature
method t_class_type : Types.class_type -> Types.class_type
method t_class_type_declaration :
Types.class_type_declaration -> Types.class_type_declaration
method t_exception_declaration :
Types.exception_declaration -> Types.exception_declaration
method t_modtype_declaration :
Types.modtype_declaration -> Types.modtype_declaration
method t_module_type : Types.module_type -> Types.module_type
method t_row_desc : Types.row_desc -> Types.row_desc
method t_row_field : Types.row_field -> Types.row_field
method t_signature : Types.signature -> Types.signature
method t_signature_item : Types.signature_item -> Types.signature_item
method t_type_declaration :
Types.type_declaration -> Types.type_declaration
method t_type_desc : Types.type_desc -> Types.type_desc
method t_type_expr : Types.type_expr -> Types.type_expr
method t_type_kind : Types.type_kind -> Types.type_kind
method t_value_description :
Types.value_description -> Types.value_description
method t_value_kind : Types.value_kind -> Types.value_kind
method type_declaration :
type_declaration -> type_declaration
method type_kind : type_kind -> type_kind
method value_description :
value_description -> value_description
method with_constraint :
with_constraint -> with_constraint
end