Skip to content

Commit

Permalink
Use existing functionality of Ppxlib.Longident
Browse files Browse the repository at this point in the history
  • Loading branch information
n-osborne committed Jun 20, 2024
1 parent d991884 commit eab2ac4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/qcheck-stm/src/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ let get_sut_type_name config =
| _ -> failwith "unreachable case in get_sut_type_name"

let get_sut_type_name_str config =
let open Ppxlib in
match get_sut_type_name config with
| Longident.Lident s | Longident.Ldot (_, s) -> s
| Longident.Lapply (_, _) -> failwith "not supported"
Ppxlib.Longident.last_exn (get_sut_type_name config)

let is_sut config ty =
let sut_type_name = get_sut_type_name config in
Expand Down

0 comments on commit eab2ac4

Please sign in to comment.