2003-04-01 17:32:09 -08:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
(* OCaml *)
|
2003-04-01 17:32:09 -08:00
|
|
|
(* *)
|
|
|
|
(* 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 Q Public License version 1.0. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* 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 =
|
|
|
|
| Ti_pat of pattern
|
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;;
|