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 @@ -5495,12 +5495,12 @@ and parse_type_extension ~params ~attrs ~name p =
5495
5495
let constructors = loop p [first] in
5496
5496
Ast_helper.Te. mk ~attrs ~params ~priv name constructors
5497
5497
5498
- and parse_type_definitions ? current_type_name_path ? inline_types ~attrs ~name
5498
+ and parse_type_definitions ~ current_type_name_path ~ inline_types ~attrs ~name
5499
5499
~params ~start_pos p =
5500
5500
let type_def =
5501
5501
let manifest, priv, kind =
5502
- parse_type_equation_and_representation ? current_type_name_path
5503
- ? inline_types p
5502
+ parse_type_equation_and_representation ~ current_type_name_path
5503
+ ~ inline_types p
5504
5504
in
5505
5505
let cstrs = parse_type_constraints p in
5506
5506
let loc = mk_loc start_pos p.prev_end_pos in
Original file line number Diff line number Diff line change @@ -1624,11 +1624,11 @@ and print_label_declaration ?inline_record_definitions ~state
1624
1624
{ptyp_desc = Ptyp_constr ({txt = Lident constr_name}, _)} ) -> (
1625
1625
let record_definition =
1626
1626
inline_record_definitions
1627
- |> List. find (fun (r : Parsetree.type_declaration ) ->
1627
+ |> List. find_opt (fun (r : Parsetree.type_declaration ) ->
1628
1628
r.ptype_name.txt = constr_name)
1629
1629
in
1630
- match record_definition.ptype_kind with
1631
- | Ptype_record lds ->
1630
+ match record_definition with
1631
+ | Some { ptype_kind = Ptype_record lds } ->
1632
1632
print_record_declaration ~inline_record_definitions ~state lds
1633
1633
cmt_tbl
1634
1634
| _ -> assert false )
You can’t perform that action at this time.
0 commit comments