Find and remove dead code and unused APIs in OCaml projects
at main 22 lines 570 B view raw
1(** Module alias detection for OCaml code *) 2 3val is_module_alias : 4 cache:Cache.t -> 5 string -> 6 Types.symbol_kind -> 7 Types.location -> 8 string -> 9 bool 10(** [is_module_alias ~cache file symbol_kind loc content] checks if a module 11 declaration is a module type alias in .mli files. *) 12 13(** {2 Regular expressions exposed for testing} *) 14 15val ws : Re.t 16(** [ws] matches zero or more whitespace characters. *) 17 18val ws1 : Re.t 19(** [ws1] matches one or more whitespace characters. *) 20 21val module_name : Re.t 22(** [module_name] matches a valid OCaml module name. *)