@@ -389,7 +389,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
389389 \ To fix this, change the highlighted code so it evaluates to a \
390390 @{<info>bool@}."
391391 | Some Await , _ ->
392- Cmt_utils . add_possible_action
392+ Actions . add_possible_action
393393 {loc; action = RemoveAwait ; description = " Remove await" };
394394 fprintf ppf
395395 " \n\n \
@@ -417,7 +417,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
417417 | Some ComparisonOperator , _ ->
418418 fprintf ppf " \n\n You can only compare things of the same type."
419419 | Some ArrayValue , _ ->
420- Cmt_utils . add_possible_action
420+ Actions . add_possible_action
421421 {loc; action = RewriteArrayToTuple ; description = " Rewrite to tuple" };
422422 fprintf ppf
423423 " \n\n \
@@ -478,7 +478,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
478478 Some record
479479 | _ -> None )
480480 in
481- Cmt_utils . add_possible_action
481+ Actions . add_possible_action
482482 {
483483 loc;
484484 action = RewriteObjectToRecord ;
@@ -498,7 +498,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
498498 | _, Some ({Types. desc = Tconstr (p1, _, _)}, _)
499499 when Path. same p1 Predef. path_promise ->
500500 (* TODO: This should be aware of if we're in an async context or not? *)
501- Cmt_utils . add_possible_action
501+ Actions . add_possible_action
502502 {loc; action = AddAwait ; description = " Await promise" };
503503 fprintf ppf " \n\n - Did you mean to await this promise before using it?\n "
504504 | _, Some ({Types. desc = Tconstr (p1, _, _)}, {Types. desc = Ttuple _})
@@ -507,7 +507,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
507507 Parser. reprint_expr_at_loc loc ~mapper: (fun exp ->
508508 match exp.Parsetree. pexp_desc with
509509 | Pexp_array items ->
510- Cmt_utils . add_possible_action
510+ Actions . add_possible_action
511511 {
512512 loc;
513513 action = RewriteArrayToTuple ;
@@ -538,7 +538,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
538538 in
539539
540540 let print_jsx_msg ?(extra = " " ) name target_fn =
541- Cmt_utils . add_possible_action
541+ Actions . add_possible_action
542542 {
543543 loc;
544544 action = ApplyFunction {function_name = Longident. parse target_fn};
@@ -589,7 +589,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
589589 | ( Some (RecordField {optional = true ; field_name; jsx = None }),
590590 Some ({desc = Tconstr (p, _, _)}, _) )
591591 when Path. same Predef. path_option p ->
592- Cmt_utils . add_possible_action
592+ Actions . add_possible_action
593593 {
594594 loc;
595595 action = ChangeRecordFieldOptional {optional = true };
@@ -632,7 +632,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
632632 | ( Some (FunctionArgument {optional = true }),
633633 Some ({desc = Tconstr (p, _, _)}, _) )
634634 when Path. same Predef. path_option p ->
635- Cmt_utils . add_possible_action
635+ Actions . add_possible_action
636636 {
637637 loc;
638638 action = RewriteArgType {to_type = `Optional };
@@ -696,7 +696,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
696696 in
697697 match (reprinted, List. mem string_value variant_constructors) with
698698 | Some reprinted , true ->
699- Cmt_utils . add_possible_action
699+ Actions . add_possible_action
700700 {
701701 loc;
702702 action =
@@ -763,7 +763,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
763763 in
764764 match reprinted with
765765 | Some reprinted ->
766- Cmt_utils . add_possible_action
766+ Actions . add_possible_action
767767 {
768768 loc;
769769 action =
@@ -829,7 +829,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
829829 in
830830
831831 if can_show_coercion_message && not is_constant then (
832- Cmt_utils . add_possible_action
832+ Actions . add_possible_action
833833 {
834834 loc;
835835 action =
0 commit comments