Find and remove dead code and unused APIs in OCaml projects
1(** Source comment scanning utilities for comments not in the AST
2
3 This module handles detection of source-level comments (* ... *) that are
4 not part of the OCaml AST. Doc comments (** ... *) attached to items become
5 attributes and are handled through the AST, but floating doc comments and
6 regular comments need this scanner.
7
8 TODO: Remove this module once OCaml parser includes all comments in AST *)
9
10val extend_location_with_comments :
11 Cache.t -> string -> Types.location -> Types.location
12(** [extend_location_with_comments cache file location] extends the given
13 location to include any source-level comments (both doc and regular) that
14 immediately precede or follow the location. *)