2003-04-01 17:32:09 -08:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Objective Caml *)
|
|
|
|
(* *)
|
|
|
|
(* 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. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
|
|
|
(* Recording and dumping (partial) type information *)
|
|
|
|
|
2003-04-01 22:57:15 -08:00
|
|
|
(* Clflags.save_types must be true *)
|
|
|
|
|
|
|
|
open Typedtree;;
|
|
|
|
|
|
|
|
type type_info =
|
|
|
|
Ti_pat of pattern
|
|
|
|
| Ti_expr of expression
|
|
|
|
| Ti_class of class_expr
|
|
|
|
| Ti_mod of module_expr
|
|
|
|
;;
|
|
|
|
|
|
|
|
val record : type_info -> unit;;
|
2003-07-23 09:52:41 -07:00
|
|
|
val record_phrase : Location.t -> unit;;
|
2003-04-01 17:32:09 -08:00
|
|
|
val dump : string -> unit;;
|
2003-04-01 22:57:15 -08:00
|
|
|
|
|
|
|
val get_location : type_info -> Location.t;;
|
|
|
|
val get_info : unit -> type_info list;;
|