package chamo

  1. Overview
  2. Docs

Module Chamo.BinannotSource

Getting information from ocaml-generated .cmt files.

Sourceval load_cmt : string -> (Cmt_format.cmt_infos, string) Result.t
Sourcetype lookup_res = {
  1. loc : Location.t;
  2. path : Path.t option;
  3. typ : Types.type_expr;
  4. def : Location.t option;
}
Sourceval pos_in_loc : (string * int) -> Location.t -> bool
Sourceval apply_mapper : Untypeast.mapper -> Cmt_format.binary_part -> unit
Sourceval lookup_in_binary_part : (string * int) -> Cmt_format.binary_part -> lookup_res option
Sourceval cmt_parts : Cmt_format.cmt_infos -> Cmt_format.binary_part list
Sourceval lookup_by_pos : (string * int) -> Cmt_format.cmt_infos -> lookup_res option
Sourceval fold_exp_idents : ('a -> (Path.t * Location.t * Location.t option) -> 'a) -> 'a -> Cmt_format.cmt_infos -> 'a
OCaml

Innovation. Community. Security.