@@ -43,7 +43,7 @@ let handle_external loc (x : string) : Parsetree.expression =
43
43
Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_expr" ]
44
44
~pval_type:
45
45
(Ast_helper.Typ. arrow ~arity: (Some 1 )
46
- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
46
+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
47
47
(Ast_helper.Typ. any () ))
48
48
[str_exp];
49
49
}
@@ -72,7 +72,7 @@ let handle_debugger loc (payload : Ast_payload.t) =
72
72
Ast_external_mk. local_external_apply loc ~pval_prim: [" %debugger" ]
73
73
~pval_type:
74
74
(Ast_helper.Typ. arrow ~arity: (Some 1 )
75
- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
75
+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
76
76
(Ast_literal. type_unit () ))
77
77
[Ast_literal. val_unit ~loc () ]
78
78
| _ ->
@@ -99,7 +99,7 @@ let handle_raw ~kind loc payload =
99
99
Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_expr" ]
100
100
~pval_type:
101
101
(Ast_helper.Typ. arrow ~arity: (Some 1 )
102
- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
102
+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
103
103
(Ast_helper.Typ. any () ))
104
104
[exp];
105
105
pexp_attributes =
@@ -128,11 +128,16 @@ let handle_ffi ~loc ~payload =
128
128
let unit = Ast_literal. type_unit ~loc () in
129
129
let rec arrow ~arity =
130
130
if arity = 0 then
131
- Ast_helper.Typ. arrow ~arity: None ~loc {lbl = Nolabel ; typ = unit } any
131
+ Ast_helper.Typ. arrow ~arity: None ~loc
132
+ {attrs = [] ; lbl = Nolabel ; typ = unit }
133
+ any
132
134
else if arity = 1 then
133
- Ast_helper.Typ. arrow ~arity: None ~loc {lbl = Nolabel ; typ = any} any
135
+ Ast_helper.Typ. arrow ~arity: None ~loc
136
+ {attrs = [] ; lbl = Nolabel ; typ = any}
137
+ any
134
138
else
135
- Ast_helper.Typ. arrow ~loc ~arity: None {lbl = Nolabel ; typ = any}
139
+ Ast_helper.Typ. arrow ~loc ~arity: None
140
+ {attrs = [] ; lbl = Nolabel ; typ = any}
136
141
(arrow ~arity: (arity - 1 ))
137
142
in
138
143
match ! is_function with
@@ -152,7 +157,7 @@ let handle_ffi ~loc ~payload =
152
157
Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_expr" ]
153
158
~pval_type:
154
159
(Ast_helper.Typ. arrow ~arity: (Some 1 )
155
- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
160
+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
156
161
(Ast_helper.Typ. any () ))
157
162
[exp];
158
163
pexp_attributes =
@@ -171,7 +176,7 @@ let handle_raw_structure loc payload =
171
176
Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_stmt" ]
172
177
~pval_type:
173
178
(Ast_helper.Typ. arrow ~arity: (Some 1 )
174
- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
179
+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
175
180
(Ast_helper.Typ. any () ))
176
181
[exp];
177
182
}
0 commit comments