File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5580,12 +5580,12 @@ and parse_type_extension ~params ~attrs ~name p =
5580
5580
let constructors = loop p [first] in
5581
5581
Ast_helper.Te. mk ~attrs ~params ~priv name constructors
5582
5582
5583
- and parse_type_definitions ? current_type_name_path ? inline_types ~attrs ~name
5583
+ and parse_type_definitions ~ current_type_name_path ~ inline_types ~attrs ~name
5584
5584
~params ~start_pos p =
5585
5585
let type_def =
5586
5586
let manifest, priv, kind =
5587
- parse_type_equation_and_representation ? current_type_name_path
5588
- ? inline_types p
5587
+ parse_type_equation_and_representation ~ current_type_name_path
5588
+ ~ inline_types p
5589
5589
in
5590
5590
let cstrs = parse_type_constraints p in
5591
5591
let loc = mk_loc start_pos p.prev_end_pos in
Original file line number Diff line number Diff line change @@ -1626,11 +1626,11 @@ and print_label_declaration ?inline_record_definitions ~state
1626
1626
{ptyp_desc = Ptyp_constr ({txt = Lident constr_name}, _)} ) -> (
1627
1627
let record_definition =
1628
1628
inline_record_definitions
1629
- |> List. find (fun (r : Parsetree.type_declaration ) ->
1629
+ |> List. find_opt (fun (r : Parsetree.type_declaration ) ->
1630
1630
r.ptype_name.txt = constr_name)
1631
1631
in
1632
- match record_definition.ptype_kind with
1633
- | Ptype_record lds ->
1632
+ match record_definition with
1633
+ | Some { ptype_kind = Ptype_record lds } ->
1634
1634
print_record_declaration ~inline_record_definitions ~state lds
1635
1635
cmt_tbl
1636
1636
| _ -> assert false )
You can’t perform that action at this time.
0 commit comments