@@ -42,7 +42,7 @@ let apply_simple ?(loc = default_loc) ?(attrs = []) (fn : expression)
42
42
Pexp_apply
43
43
{
44
44
funct = fn;
45
- args = Ext_list. map args (fun x -> (Asttypes. Nolabel , x));
45
+ args = Ext_list. map args (fun x -> (Asttypes. Nolbl , x));
46
46
partial = false ;
47
47
};
48
48
}
@@ -51,8 +51,7 @@ let app1 ?(loc = default_loc) ?(attrs = []) fn arg1 : expression =
51
51
{
52
52
pexp_loc = loc;
53
53
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 };
56
55
}
57
56
58
57
let app2 ?(loc = default_loc) ?(attrs = [] ) fn arg1 arg2 : expression =
@@ -61,7 +60,7 @@ let app2 ?(loc = default_loc) ?(attrs = []) fn arg1 arg2 : expression =
61
60
pexp_attributes = attrs;
62
61
pexp_desc =
63
62
Pexp_apply
64
- {funct = fn; args = [(Nolabel , arg1); (Nolabel , arg2)]; partial = false };
63
+ {funct = fn; args = [(Nolbl , arg1); (Nolbl , arg2)]; partial = false };
65
64
}
66
65
67
66
let 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 =
72
71
Pexp_apply
73
72
{
74
73
funct = fn;
75
- args = [(Nolabel , arg1); (Nolabel , arg2); (Nolabel , arg3)];
74
+ args = [(Nolbl , arg1); (Nolbl , arg2); (Nolbl , arg3)];
76
75
partial = false ;
77
76
};
78
77
}
@@ -118,7 +117,9 @@ let apply_labels ?(loc = default_loc) ?(attrs = []) fn
118
117
Pexp_apply
119
118
{
120
119
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));
122
123
partial = false ;
123
124
};
124
125
}
@@ -167,4 +168,4 @@ type object_field = Parsetree.object_field
167
168
168
169
let object_field l attrs ty = Parsetree. Otag (l, attrs, ty)
169
170
170
- type args = (Asttypes .arg_label * Parsetree .expression ) list
171
+ type args = (Asttypes .arg_label_loc * Parsetree .expression ) list
0 commit comments