Handle.QuerySourceHandling of queries.
val infer :
Common.Pos.popt ->
Core.Term.problem ->
Core.Term.ctxt ->
Core.Term.term ->
Core.Term.term * Core.Term.terminfer pos p c t returns a couple (t',a) where a is the type of t in context c and under constraints of problem p; and t' is the refinement of t. Note that p gets modified. Context c must well sorted.
val check :
Common.Pos.popt ->
Core.Term.problem ->
Core.Term.ctxt ->
Core.Term.term ->
Core.Term.term ->
Core.Term.termcheck pos p c t a checks that the term t has type a in context c and under the constraints of p, and returns t refined. Context c must be well-sorted. Note that p is modified.
val check_sort :
Common.Pos.popt ->
Core.Term.problem ->
Core.Term.ctxt ->
Core.Term.term ->
Core.Term.term * Core.Term.termcheck_sort pos p c t checks that the term t has type Type or Kind in context c and under the constraints of p. Context c must be well sorted.
Result of query displayed on hover in the editor.
handle_query ss ps q