1
1
2
2
open J
3
- class virtual fold =
3
+ let [@ inline] unknown o _ = o
4
+ class fold =
4
5
object ((o : 'self_type ))
5
- method unknown : 'a. 'a -> 'self_type = fun _ -> o
6
- method string : string -> 'self_type = fun _ -> o
7
6
method option :
8
7
'a. ('self_type -> 'a -> 'self_type) -> 'a option -> 'self_type =
9
8
fun _f_a -> function | None -> o | Some _x -> let o = _f_a o _x in o
13
12
function
14
13
| [] -> o
15
14
| _x :: _x_i1 -> let o = _f_a o _x in let o = o#list _f_a _x_i1 in o
16
- method int32 : int32 -> 'self_type = fun _ -> o
17
- method int : int -> 'self_type = fun _ -> o
18
- method bool : bool -> 'self_type = fun _ -> o
19
- method label : label -> 'self_type = o#string
20
- method binop : binop -> 'self_type = o#unknown
21
- method int_op : int_op -> 'self_type = o#unknown
22
- method kind : kind -> 'self_type = o#unknown
23
- method property : property -> 'self_type = o#unknown
24
- method number : number -> 'self_type = o#unknown
25
- method mutable_flag : mutable_flag -> 'self_type = o#unknown
26
- method ident_info : ident_info -> 'self_type = o#unknown
27
- method exports : exports -> 'self_type = o#unknown
28
- method tag_info : tag_info -> 'self_type = o#unknown
15
+ method label : label -> 'self_type = unknown o
29
16
method required_modules : required_modules -> 'self_type = o#list (fun o -> o#module_id)
30
- method property_name : property_name -> 'self_type = o#unknown
31
- method ident : ident -> 'self_type = o#unknown
17
+ method ident : ident -> 'self_type = unknown o
32
18
method module_id : module_id -> 'self_type = fun { id = _x0 ;kind = _x1 } -> let o = o#ident _x0 in
33
- let o = o# unknown _x1 in o
19
+ let o = unknown o _x1 in o
34
20
method vident : vident -> 'self_type = function
35
21
| Id ( _x0 ) ->
36
22
let o = o#ident _x0 in
37
23
o
38
24
| Qualified ( _x0 ,_x1 ) ->
39
25
let o = o#module_id _x0 in
40
- let o = o#option (fun o -> o#string ) _x1 in
26
+ let o = o#option (fun o -> unknown o ) _x1 in
41
27
o
42
28
method exception_ident : exception_ident -> 'self_type = o#ident
43
29
method for_ident : for_ident -> 'self_type = o#ident
44
- method for_direction : for_direction -> 'self_type = o# unknown
45
- method property_map : property_map -> 'self_type = o#list (fun o -> fun ( _x0 ,_x1 ) -> let o = o#property_name _x0 in let o = o#expression _x1 in o)
46
- method length_object : length_object -> 'self_type = o# unknown
30
+ method for_direction : for_direction -> 'self_type = unknown o
31
+ method property_map : property_map -> 'self_type = o#list (fun o -> fun ( _x0 ,_x1 ) -> let o = unknown o _x0 in let o = o#expression _x1 in o)
32
+ method length_object : length_object -> 'self_type = unknown o
47
33
method expression_desc : expression_desc -> 'self_type = function
48
34
| Length ( _x0 ,_x1 ) ->
49
35
let o = o#expression _x0 in
@@ -63,7 +49,7 @@ let o = o#expression _x0 in
63
49
let o = o#expression _x1 in
64
50
o
65
51
| Bool ( _x0 ) ->
66
- let o = o#bool _x0 in
52
+ let o = unknown o _x0 in
67
53
o
68
54
| Typeof ( _x0 ) ->
69
55
let o = o#expression _x0 in
@@ -81,7 +67,7 @@ let o = o#expression _x1 in
81
67
let o = o#expression _x2 in
82
68
o
83
69
| Bin ( _x0 ,_x1 ,_x2 ) ->
84
- let o = o#binop _x0 in
70
+ let o = unknown o _x0 in
85
71
let o = o#expression _x1 in
86
72
let o = o#expression _x2 in
87
73
o
@@ -92,7 +78,7 @@ let o = o#expression _x1 in
92
78
| Call ( _x0 ,_x1 ,_x2 ) ->
93
79
let o = o#expression _x0 in
94
80
let o = o#list (fun o -> o#expression) _x1 in
95
- let o = o# unknown _x2 in
81
+ let o = unknown o _x2 in
96
82
o
97
83
| String_index ( _x0 ,_x1 ) ->
98
84
let o = o#expression _x0 in
@@ -104,8 +90,8 @@ let o = o#expression _x1 in
104
90
o
105
91
| Static_index ( _x0 ,_x1 ,_x2 ) ->
106
92
let o = o#expression _x0 in
107
- let o = o#string _x1 in
108
- let o = o#option (fun o -> o#int32 ) _x2 in
93
+ let o = unknown o _x1 in
94
+ let o = o#option (fun o -> unknown o ) _x2 in
109
95
o
110
96
| New ( _x0 ,_x1 ) ->
111
97
let o = o#expression _x0 in
@@ -115,40 +101,40 @@ let o = o#option (fun o -> o#list (fun o -> o#expression)) _x1 in
115
101
let o = o#vident _x0 in
116
102
o
117
103
| Fun ( _x0 ,_x1 ,_x2 ,_x3 ) ->
118
- let o = o#bool _x0 in
104
+ let o = unknown o _x0 in
119
105
let o = o#list (fun o -> o#ident) _x1 in
120
106
let o = o#block _x2 in
121
- let o = o# unknown _x3 in
107
+ let o = unknown o _x3 in
122
108
o
123
109
| Str ( _x0 ,_x1 ) ->
124
- let o = o#bool _x0 in
125
- let o = o#string _x1 in
110
+ let o = unknown o _x0 in
111
+ let o = unknown o _x1 in
126
112
o
127
113
| Unicode ( _x0 ) ->
128
- let o = o#string _x0 in
114
+ let o = unknown o _x0 in
129
115
o
130
116
| Raw_js_code ( _x0 ) ->
131
- let o = o# unknown _x0 in
117
+ let o = unknown o _x0 in
132
118
o
133
119
| Array ( _x0 ,_x1 ) ->
134
120
let o = o#list (fun o -> o#expression) _x0 in
135
- let o = o#mutable_flag _x1 in
121
+ let o = unknown o _x1 in
136
122
o
137
123
| Optional_block ( _x0 ,_x1 ) ->
138
124
let o = o#expression _x0 in
139
- let o = o#bool _x1 in
125
+ let o = unknown o _x1 in
140
126
o
141
127
| Caml_block ( _x0 ,_x1 ,_x2 ,_x3 ) ->
142
128
let o = o#list (fun o -> o#expression) _x0 in
143
- let o = o#mutable_flag _x1 in
129
+ let o = unknown o _x1 in
144
130
let o = o#expression _x2 in
145
- let o = o#tag_info _x3 in
131
+ let o = unknown o _x3 in
146
132
o
147
133
| Caml_block_tag ( _x0 ) ->
148
134
let o = o#expression _x0 in
149
135
o
150
136
| Number ( _x0 ) ->
151
- let o = o#number _x0 in
137
+ let o = unknown o _x0 in
152
138
o
153
139
| Object ( _x0 ) ->
154
140
let o = o#property_map _x0 in
@@ -176,15 +162,15 @@ let o = o#block _x2 in
176
162
let o = o#option (fun o -> o#label) _x0 in
177
163
let o = o#expression _x1 in
178
164
let o = o#block _x2 in
179
- let o = o# unknown _x3 in
165
+ let o = unknown o _x3 in
180
166
o
181
167
| ForRange ( _x0 ,_x1 ,_x2 ,_x3 ,_x4 ,_x5 ) ->
182
168
let o = o#option (fun o -> o#for_ident_expression) _x0 in
183
169
let o = o#finish_ident_expression _x1 in
184
170
let o = o#for_ident _x2 in
185
171
let o = o#for_direction _x3 in
186
172
let o = o#block _x4 in
187
- let o = o# unknown _x5 in
173
+ let o = unknown o _x5 in
188
174
o
189
175
| Continue ( _x0 ) ->
190
176
let o = o#label _x0 in
@@ -213,24 +199,24 @@ let o = o#option (fun o -> o#block) _x2 in
213
199
o
214
200
| Debugger -> o
215
201
method expression : expression -> 'self_type = fun { expression_desc = _x0 ;comment = _x1 } -> let o = o#expression_desc _x0 in
216
- let o = o#option (fun o -> o#string ) _x1 in o
202
+ let o = o#option (fun o -> unknown o ) _x1 in o
217
203
method statement : statement -> 'self_type = fun { statement_desc = _x0 ;comment = _x1 } -> let o = o#statement_desc _x0 in
218
- let o = o#option (fun o -> o#string ) _x1 in o
204
+ let o = o#option (fun o -> unknown o ) _x1 in o
219
205
method variable_declaration : variable_declaration -> 'self_type = fun { ident = _x0 ;value = _x1 ;property = _x2 ;ident_info = _x3 } -> let o = o#ident _x0 in
220
206
let o = o#option (fun o -> o#expression) _x1 in
221
- let o = o#property _x2 in
222
- let o = o#ident_info _x3 in o
223
- method string_clause : string_clause -> 'self_type = fun ( _x0 ,_x1 ) -> let o = o#string _x0 in let o = o#case_clause _x1 in o
224
- method int_clause : int_clause -> 'self_type = fun ( _x0 ,_x1 ) -> let o = o#int _x0 in let o = o#case_clause _x1 in o
207
+ let o = unknown o _x2 in
208
+ let o = unknown o _x3 in o
209
+ method string_clause : string_clause -> 'self_type = fun ( _x0 ,_x1 ) -> let o = unknown o _x0 in let o = o#case_clause _x1 in o
210
+ method int_clause : int_clause -> 'self_type = fun ( _x0 ,_x1 ) -> let o = unknown o _x0 in let o = o#case_clause _x1 in o
225
211
method case_clause : case_clause -> 'self_type = fun { switch_body = _x0 ;should_break = _x1 ;comment = _x2 } -> let o = o#block _x0 in
226
- let o = o#bool _x1 in
227
- let o = o#option (fun o -> o#string ) _x2 in o
212
+ let o = unknown o _x1 in
213
+ let o = o#option (fun o -> unknown o ) _x2 in o
228
214
method block : block -> 'self_type = o#list (fun o -> o#statement)
229
215
method program : program -> 'self_type = fun { block = _x0 ;exports = _x1 ;export_set = _x2 } -> let o = o#block _x0 in
230
- let o = o#exports _x1 in
231
- let o = o# unknown _x2 in o
216
+ let o = unknown o _x1 in
217
+ let o = unknown o _x2 in o
232
218
method deps_program : deps_program -> 'self_type = fun { program = _x0 ;modules = _x1 ;side_effect = _x2 } -> let o = o#program _x0 in
233
219
let o = o#required_modules _x1 in
234
- let o = o#option (fun o -> o#string ) _x2 in o
220
+ let o = o#option (fun o -> unknown o ) _x2 in o
235
221
end
236
222
0 commit comments