@@ -31,7 +31,7 @@ open Parsetree
3131let default_loc = Location. none
3232
3333let arrow ?loc ?attrs ~arity a b =
34- Ast_helper.Typ. arrow ?loc ?attrs ~arity Nolbl a b
34+ Ast_helper.Typ. arrow ?loc ?attrs ~arity Nolabel a b
3535
3636let apply_simple ?(loc = default_loc) ?(attrs = [] ) (fn : expression )
3737 (args : expression list ) : expression =
@@ -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. Nolbl , x));
45+ args = Ext_list. map args (fun x -> (Asttypes. Nolabel , x));
4646 partial = false ;
4747 };
4848 }
@@ -51,7 +51,8 @@ let app1 ?(loc = default_loc) ?(attrs = []) fn arg1 : expression =
5151 {
5252 pexp_loc = loc;
5353 pexp_attributes = attrs;
54- pexp_desc = Pexp_apply {funct = fn; args = [(Nolbl , arg1)]; partial = false };
54+ pexp_desc =
55+ Pexp_apply {funct = fn; args = [(Nolabel , arg1)]; partial = false };
5556 }
5657
5758let app2 ?(loc = default_loc) ?(attrs = [] ) fn arg1 arg2 : expression =
@@ -60,7 +61,7 @@ let app2 ?(loc = default_loc) ?(attrs = []) fn arg1 arg2 : expression =
6061 pexp_attributes = attrs;
6162 pexp_desc =
6263 Pexp_apply
63- {funct = fn; args = [(Nolbl , arg1); (Nolbl , arg2)]; partial = false };
64+ {funct = fn; args = [(Nolabel , arg1); (Nolabel , arg2)]; partial = false };
6465 }
6566
6667let app3 ?(loc = default_loc) ?(attrs = [] ) fn arg1 arg2 arg3 : expression =
@@ -71,7 +72,7 @@ let app3 ?(loc = default_loc) ?(attrs = []) fn arg1 arg2 arg3 : expression =
7172 Pexp_apply
7273 {
7374 funct = fn;
74- args = [(Nolbl , arg1); (Nolbl , arg2); (Nolbl , arg3)];
75+ args = [(Nolabel , arg1); (Nolabel , arg2); (Nolabel , arg3)];
7576 partial = false ;
7677 };
7778 }
@@ -82,7 +83,14 @@ let fun_ ?(loc = default_loc) ?(attrs = []) ?(async = false) ~arity pat exp =
8283 pexp_attributes = attrs;
8384 pexp_desc =
8485 Pexp_fun
85- {arg_label = Nolbl ; default = None ; lhs = pat; rhs = exp; arity; async};
86+ {
87+ arg_label = Nolabel ;
88+ default = None ;
89+ lhs = pat;
90+ rhs = exp;
91+ arity;
92+ async;
93+ };
8694 }
8795
8896let const_exp_string ?(loc = default_loc) ?(attrs = [] ) ?delimiter (s : string )
@@ -111,7 +119,7 @@ let apply_labels ?(loc = default_loc) ?(attrs = []) fn
111119 funct = fn;
112120 args =
113121 Ext_list. map args (fun (l , a ) ->
114- (Asttypes. Lbl {txt = l; loc = Location. none}, a));
122+ (Asttypes. Labelled {txt = l; loc = Location. none}, a));
115123 partial = false ;
116124 };
117125 }
@@ -120,7 +128,8 @@ let label_arrow ?(loc = default_loc) ?(attrs = []) ~arity txt arg ret :
120128 core_type =
121129 {
122130 ptyp_desc =
123- Ptyp_arrow {lbl = Asttypes. Lbl {txt; loc = default_loc}; arg; ret; arity};
131+ Ptyp_arrow
132+ {lbl = Asttypes. Labelled {txt; loc = default_loc}; arg; ret; arity};
124133 ptyp_loc = loc;
125134 ptyp_attributes = attrs;
126135 }
@@ -129,7 +138,8 @@ let opt_arrow ?(loc = default_loc) ?(attrs = []) ~arity txt arg ret : core_type
129138 =
130139 {
131140 ptyp_desc =
132- Ptyp_arrow {lbl = Asttypes. Opt {txt; loc = default_loc}; arg; ret; arity};
141+ Ptyp_arrow
142+ {lbl = Asttypes. Optional {txt; loc = default_loc}; arg; ret; arity};
133143 ptyp_loc = loc;
134144 ptyp_attributes = attrs;
135145 }
0 commit comments