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 @@ -5521,12 +5521,12 @@ and parse_type_extension ~params ~attrs ~name p =
5521
5521
let constructors = loop p [first] in
5522
5522
Ast_helper.Te. mk ~attrs ~params ~priv name constructors
5523
5523
5524
- and parse_type_definitions ? current_type_name_path ? inline_types ~attrs ~name
5524
+ and parse_type_definitions ~ current_type_name_path ~ inline_types ~attrs ~name
5525
5525
~params ~start_pos p =
5526
5526
let type_def =
5527
5527
let manifest, priv, kind =
5528
- parse_type_equation_and_representation ? current_type_name_path
5529
- ? inline_types p
5528
+ parse_type_equation_and_representation ~ current_type_name_path
5529
+ ~ inline_types p
5530
5530
in
5531
5531
let cstrs = parse_type_constraints p in
5532
5532
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