File tree 1 file changed +18
-20
lines changed
1 file changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -228,16 +228,15 @@ let expr_mapper ~async_context ~in_function_def (self : mapper)
228
228
let safe_module_type_lid : Ast_helper.lid =
229
229
{txt = Lident (local_module_type_name txt); loc = me.pmod_loc}
230
230
in
231
- self.expr self
232
- {
233
- e with
234
- pexp_desc =
235
- Pexp_letmodule
236
- ( lid,
237
- Ast_await. create_await_module_expression
238
- ~module_type_lid: safe_module_type_lid me,
239
- expr );
240
- }
231
+ {
232
+ e with
233
+ pexp_desc =
234
+ Pexp_letmodule
235
+ ( lid,
236
+ Ast_await. create_await_module_expression
237
+ ~module_type_lid: safe_module_type_lid me,
238
+ self.expr self expr );
239
+ }
241
240
(* module M = await (Belt.List: BeltList) *)
242
241
| Pexp_letmodule
243
242
( lid,
@@ -249,16 +248,15 @@ let expr_mapper ~async_context ~in_function_def (self : mapper)
249
248
} as me),
250
249
expr )
251
250
when Res_parsetree_viewer. hasAwaitAttribute pmod_attributes ->
252
- self.expr self
253
- {
254
- e with
255
- pexp_desc =
256
- Pexp_letmodule
257
- ( lid,
258
- Ast_await. create_await_module_expression ~module_type_lid: mtyp_lid
259
- me,
260
- expr );
261
- }
251
+ {
252
+ e with
253
+ pexp_desc =
254
+ Pexp_letmodule
255
+ ( lid,
256
+ Ast_await. create_await_module_expression ~module_type_lid: mtyp_lid
257
+ me,
258
+ self.expr self expr );
259
+ }
262
260
| _ -> default_expr_mapper self e
263
261
264
262
let expr_mapper ~async_context ~in_function_def (self : mapper )
You can’t perform that action at this time.
0 commit comments