@@ -42,7 +42,7 @@ let apply_simple ?(loc = default_loc) ?(attrs = []) (fn : expression)
4242 Pexp_apply
4343 {
4444 funct = fn;
45- args = Ext_list. map args (fun x -> (Asttypes. Nolabel , x));
45+ args = Ext_list. map args (fun x -> (Asttypes. Nolbl , x));
4646 partial = false ;
4747 };
4848 }
@@ -51,8 +51,7 @@ let app1 ?(loc = default_loc) ?(attrs = []) fn arg1 : expression =
5151 {
5252 pexp_loc = loc;
5353 pexp_attributes = attrs;
54- pexp_desc =
55- Pexp_apply {funct = fn; args = [(Nolabel , arg1)]; partial = false };
54+ pexp_desc = Pexp_apply {funct = fn; args = [(Nolbl , arg1)]; partial = false };
5655 }
5756
5857let app2 ?(loc = default_loc) ?(attrs = [] ) fn arg1 arg2 : expression =
@@ -61,7 +60,7 @@ let app2 ?(loc = default_loc) ?(attrs = []) fn arg1 arg2 : expression =
6160 pexp_attributes = attrs;
6261 pexp_desc =
6362 Pexp_apply
64- {funct = fn; args = [(Nolabel , arg1); (Nolabel , arg2)]; partial = false };
63+ {funct = fn; args = [(Nolbl , arg1); (Nolbl , arg2)]; partial = false };
6564 }
6665
6766let app3 ?(loc = default_loc) ?(attrs = [] ) fn arg1 arg2 arg3 : expression =
@@ -72,7 +71,7 @@ let app3 ?(loc = default_loc) ?(attrs = []) fn arg1 arg2 arg3 : expression =
7271 Pexp_apply
7372 {
7473 funct = fn;
75- args = [(Nolabel , arg1); (Nolabel , arg2); (Nolabel , arg3)];
74+ args = [(Nolbl , arg1); (Nolbl , arg2); (Nolbl , arg3)];
7675 partial = false ;
7776 };
7877 }
@@ -118,7 +117,9 @@ let apply_labels ?(loc = default_loc) ?(attrs = []) fn
118117 Pexp_apply
119118 {
120119 funct = fn;
121- args = Ext_list. map args (fun (l , a ) -> (Asttypes. Labelled l, a));
120+ args =
121+ Ext_list. map args (fun (l , a ) ->
122+ (Asttypes. Lbl {txt = l; loc = Location. none}, a));
122123 partial = false ;
123124 };
124125 }
@@ -167,4 +168,4 @@ type object_field = Parsetree.object_field
167168
168169let object_field l attrs ty = Parsetree. Otag (l, attrs, ty)
169170
170- type args = (Asttypes .arg_label * Parsetree .expression ) list
171+ type args = (Asttypes .arg_label_loc * Parsetree .expression ) list
0 commit comments