summaryrefslogtreecommitdiff
path: root/src/getinfo.sig
diff options
context:
space:
mode:
Diffstat (limited to 'src/getinfo.sig')
-rw-r--r--src/getinfo.sig34
1 files changed, 15 insertions, 19 deletions
diff --git a/src/getinfo.sig b/src/getinfo.sig
index 50eee70a..663a9a81 100644
--- a/src/getinfo.sig
+++ b/src/getinfo.sig
@@ -27,28 +27,24 @@
signature GET_INFO = sig
- datatype item =
- Kind of Elab.kind
- | Con of Elab.con
- | Exp of Elab.exp
- | Sgn_item of Elab.sgn_item
- | Sgn of Elab.sgn
- | Str of Elab.str
- | Decl of Elab.decl
+ datatype foundInEnv = FoundStr of (string * Elab.sgn)
+ | FoundCon of (string * Elab.kind)
+ | FoundExp of (string * Elab.con)
- val getInfo:
+ val findStringInEnv:
ElabEnv.env ->
Elab.str' ->
string (* fileName *) ->
- { line: int , character: int} ->
- { smallest : { span : ErrorMsg.span
- , item : item
- , env : ElabEnv.env }
- , smallestgoodpart : { span : ErrorMsg.span
- , desc : Print.PD.pp_desc
- , env : ElabEnv.env
- , item : item
- } option
-}
+ {line: int, char: int} ->
+ string (* query *) ->
+ (ElabEnv.env * string (* prefix *) * foundInEnv option)
+
+ val matchStringInEnv:
+ ElabEnv.env ->
+ Elab.str' ->
+ string (* fileName *) ->
+ {line: int, char: int} ->
+ string (* query *) ->
+ (ElabEnv.env * string (* prefix *) * foundInEnv list)
end