summaryrefslogtreecommitdiff
path: root/otherlibs/labltk/browser/searchid.mli
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/labltk/browser/searchid.mli')
-rw-r--r--otherlibs/labltk/browser/searchid.mli31
1 files changed, 31 insertions, 0 deletions
diff --git a/otherlibs/labltk/browser/searchid.mli b/otherlibs/labltk/browser/searchid.mli
new file mode 100644
index 0000000000..0d7458e700
--- /dev/null
+++ b/otherlibs/labltk/browser/searchid.mli
@@ -0,0 +1,31 @@
+(* $Id$ *)
+
+val start_env : Env.t ref
+val module_list : string list ref
+val longident_of_path : Path.t ->Longident.t
+
+type pkind =
+ Pvalue
+ | Ptype
+ | Plabel
+ | Pconstructor
+ | Pmodule
+ | Pmodtype
+ | Pclass
+ | Pcltype
+
+val string_of_kind : pkind -> string
+
+exception Error of int * int
+
+val search_string_type :
+ string -> mode:[`exact|`included] -> (Longident.t * pkind) list
+val search_pattern_symbol : string -> (Longident.t * pkind) list
+val search_string_symbol : string -> (Longident.t * pkind) list
+
+val search_structure :
+ Parsetree.structure ->
+ name:string -> kind:pkind -> prefix:string list -> int
+val search_signature :
+ Parsetree.signature ->
+ name:string -> kind:pkind -> prefix:string list -> int