2016-02-18 07:11:59 -08:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* OCaml *)
|
|
|
|
(* *)
|
|
|
|
(* Damien Doligez, projet Moscova, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 2003 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. This file is distributed under the terms of *)
|
|
|
|
(* the GNU Lesser General Public License version 2.1, with the *)
|
|
|
|
(* special exception on linking described in the file LICENSE. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
2003-04-01 17:32:09 -08:00
|
|
|
|
|
|
|
(* Recording and dumping (partial) type information *)
|
|
|
|
|
2003-04-01 22:57:15 -08:00
|
|
|
(* Clflags.save_types must be true *)
|
|
|
|
|
|
|
|
open Typedtree;;
|
|
|
|
|
2007-05-16 01:21:41 -07:00
|
|
|
type annotation =
|
2019-09-20 06:23:07 -07:00
|
|
|
| Ti_pat : 'k pattern_category * 'k general_pattern -> annotation
|
2003-04-01 22:57:15 -08:00
|
|
|
| Ti_expr of expression
|
|
|
|
| Ti_class of class_expr
|
|
|
|
| Ti_mod of module_expr
|
2007-05-16 01:21:41 -07:00
|
|
|
| An_call of Location.t * Annot.call
|
2008-07-29 08:42:44 -07:00
|
|
|
| An_ident of Location.t * string * Annot.ident
|
2003-04-01 22:57:15 -08:00
|
|
|
;;
|
|
|
|
|
2007-05-16 01:21:41 -07:00
|
|
|
val record : annotation -> unit;;
|
2003-07-23 09:52:41 -07:00
|
|
|
val record_phrase : Location.t -> unit;;
|
2012-05-30 07:52:37 -07:00
|
|
|
val dump : string option -> unit;;
|
2003-04-01 22:57:15 -08:00
|
|
|
|
2007-05-16 01:21:41 -07:00
|
|
|
val get_location : annotation -> Location.t;;
|
|
|
|
val get_info : unit -> annotation list;;
|