File tree Expand file tree Collapse file tree 5 files changed +33
-2
lines changed Expand file tree Collapse file tree 5 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,12 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
128
128
pexp_loc = e.pexp_loc;
129
129
pexp_attributes = e.pexp_attributes;
130
130
}
131
+ | Pexp_ident _ ->
132
+ {
133
+ pexp_desc = Pexp_apply (fn, [ (Nolabel , new_obj_arg) ]);
134
+ pexp_loc = e.pexp_loc;
135
+ pexp_attributes = e.pexp_attributes;
136
+ }
131
137
| _ -> (
132
138
match Ast_open_cxt. destruct fn [] with
133
139
| ( { pexp_desc = Pexp_tuple xs; pexp_attributes = tuple_attrs },
Original file line number Diff line number Diff line change @@ -53,9 +53,15 @@ function identity(x) {
53
53
return x ;
54
54
}
55
55
56
- var ok1 = { } ;
56
+ var name1 = "ReScript" ;
57
57
58
- var bad1 = { } ;
58
+ var ok1 = {
59
+ name : name1
60
+ } ;
61
+
62
+ var bad1 = {
63
+ name : name1
64
+ } ;
59
65
60
66
var v2 = newrecord ;
61
67
@@ -82,6 +88,7 @@ exports.name = name;
82
88
exports . ok = ok ;
83
89
exports . bad = bad ;
84
90
exports . identity = identity ;
91
+ exports . name1 = name1 ;
85
92
exports . ok1 = ok1 ;
86
93
exports . bad1 = bad1 ;
87
94
/* Not a pure module */
Original file line number Diff line number Diff line change @@ -269546,6 +269546,12 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
269546
269546
pexp_loc = e.pexp_loc;
269547
269547
pexp_attributes = e.pexp_attributes;
269548
269548
}
269549
+ | Pexp_ident _ ->
269550
+ {
269551
+ pexp_desc = Pexp_apply (fn, [ (Nolabel, new_obj_arg) ]);
269552
+ pexp_loc = e.pexp_loc;
269553
+ pexp_attributes = e.pexp_attributes;
269554
+ }
269549
269555
| _ -> (
269550
269556
match Ast_open_cxt.destruct fn [] with
269551
269557
| ( { pexp_desc = Pexp_tuple xs; pexp_attributes = tuple_attrs },
Original file line number Diff line number Diff line change @@ -271009,6 +271009,12 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
271009
271009
pexp_loc = e.pexp_loc;
271010
271010
pexp_attributes = e.pexp_attributes;
271011
271011
}
271012
+ | Pexp_ident _ ->
271013
+ {
271014
+ pexp_desc = Pexp_apply (fn, [ (Nolabel, new_obj_arg) ]);
271015
+ pexp_loc = e.pexp_loc;
271016
+ pexp_attributes = e.pexp_attributes;
271017
+ }
271012
271018
| _ -> (
271013
271019
match Ast_open_cxt.destruct fn [] with
271014
271020
| ( { pexp_desc = Pexp_tuple xs; pexp_attributes = tuple_attrs },
Original file line number Diff line number Diff line change @@ -281299,6 +281299,12 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
281299
281299
pexp_loc = e.pexp_loc;
281300
281300
pexp_attributes = e.pexp_attributes;
281301
281301
}
281302
+ | Pexp_ident _ ->
281303
+ {
281304
+ pexp_desc = Pexp_apply (fn, [ (Nolabel, new_obj_arg) ]);
281305
+ pexp_loc = e.pexp_loc;
281306
+ pexp_attributes = e.pexp_attributes;
281307
+ }
281302
281308
| _ -> (
281303
281309
match Ast_open_cxt.destruct fn [] with
281304
281310
| ( { pexp_desc = Pexp_tuple xs; pexp_attributes = tuple_attrs },
You can’t perform that action at this time.
0 commit comments