@@ -151,27 +151,14 @@ let arg_label i ppf = function
151
151
let typevars ppf vs =
152
152
List. iter (fun x -> fprintf ppf " %a" Printast. tyvar x.txt) vs
153
153
154
- let layout_annotation i ppf layout =
155
- line i ppf " %s" (Layouts.Layout. string_of_const layout.txt)
156
-
157
- let layout_annotation_option ppf = function
158
- | None -> fprintf ppf " --"
159
- | Some lay -> fprintf ppf " %s" (Layouts.Layout. string_of_const lay.txt)
160
-
161
- let type_vars_layouts ppf vars_layouts =
162
- List. iter (fun lay -> fprintf ppf " %a" layout_annotation_option lay)
163
- vars_layouts
164
-
165
154
let rec core_type i ppf x =
166
155
with_location_mapping ~loc: x.ptyp_loc ppf (fun () ->
167
156
line i ppf " core_type %a\n " fmt_location x.ptyp_loc;
168
157
attributes i ppf x.ptyp_attributes;
169
158
let i = i+ 1 in
170
159
match x.ptyp_desc with
171
160
| Ptyp_any -> line i ppf " Ptyp_any\n " ;
172
- | Ptyp_var (s , layout ) ->
173
- line i ppf " Ptyp_var %s\n " s;
174
- option i layout_annotation ppf layout
161
+ | Ptyp_var (s ) -> line i ppf " Ptyp_var %s\n " s;
175
162
| Ptyp_arrow (l , ct1 , ct2 ) ->
176
163
line i ppf " Ptyp_arrow\n " ;
177
164
arg_label i ppf l;
@@ -206,13 +193,12 @@ let rec core_type i ppf x =
206
193
| Ptyp_alias (ct , s ) ->
207
194
line i ppf " Ptyp_alias \" %s\"\n " s;
208
195
core_type i ppf ct;
209
- | Ptyp_poly (sl , ct , lays ) ->
196
+ | Ptyp_poly (sl , ct ) ->
210
197
line i ppf " Ptyp_poly%a\n "
211
198
(fun ppf ->
212
199
List. iter (fun x -> fprintf ppf " %a" Printast. tyvar x.txt)
213
200
)
214
201
sl;
215
- line i ppf " layouts%a\n " type_vars_layouts lays;
216
202
core_type i ppf ct;
217
203
| Ptyp_package (s , l ) ->
218
204
line i ppf " Ptyp_package %a\n " fmt_longident_loc s;
@@ -403,9 +389,8 @@ and expression i ppf x =
403
389
| Pexp_object s ->
404
390
line i ppf " Pexp_object\n " ;
405
391
class_structure i ppf s
406
- | Pexp_newtype (s , e , lay ) ->
392
+ | Pexp_newtype (s , e ) ->
407
393
line i ppf " Pexp_newtype \" %s\"\n " s.txt;
408
- layout_annotation_option ppf lay;
409
394
expression i ppf e
410
395
| Pexp_pack me ->
411
396
line i ppf " Pexp_pack\n " ;
@@ -520,11 +505,9 @@ and extension_constructor i ppf x =
520
505
521
506
and extension_constructor_kind i ppf x =
522
507
match x with
523
- Pext_decl (v , a , r , l ) ->
508
+ Pext_decl (v , a , r ) ->
524
509
line i ppf " Pext_decl\n " ;
525
- if v <> [] then
526
- (line (i+ 1 ) ppf " vars%a\n " typevars v;
527
- line (i+ 1 ) ppf " layouts%a\n " type_vars_layouts l);
510
+ if v <> [] then line (i+ 1 ) ppf " vars%a\n " typevars v;
528
511
constructor_arguments (i+ 1 ) ppf a;
529
512
option (i+ 1 ) core_type ppf r;
530
513
| Pext_rebind li ->
0 commit comments