ocamlspot / spotfile.mli

(***********************************************************************)
(*                                                                     *)
(*                            OCamlSpotter                             *)
(*                                                                     *)
(*                             Jun FURUSE                              *)
(*                                                                     *)
(*   Copyright 2008-2012 Jun Furuse. All rights reserved.              *)
(*   This file is distributed under the terms of the GNU Library       *)
(*   General Public License, with the special exception on linking     *)
(*   described in file LICENSE.                                        *)
(*                                                                     *)
(***********************************************************************)

open Spot
open Spoteval
open Cmt_format
open Spoteval

exception Old_cmt of string * string
val load : load_paths:string list -> string -> Unit.t
val load_module : ?spit:bool -> cwd:string -> load_paths:string list -> string -> Unit.t (* CR jfuruse: spit *)
val load_directly_with_cache : string -> Unit.t

val initial_env   : Unit.t -> Env.t
val invalid_env : Unit.t -> Env.t

type result = File_itself | Found_at of string * Region.t | Predefined

val find_path_in_flat : Unit.t -> Kind.t * Path.t -> PIdent.t * result
val str_of_global_ident : cwd:string -> load_paths:string list -> Ident.t -> string * Value.structure
val eval_packed : Env.t -> string -> Value.t
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.