From 23c0e563f3ce3c7596b490a5e7251d6f2634b045 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Sat, 5 Nov 2022 15:54:35 -0600 Subject: [PATCH] refactor: add signature_help mli (#913) Signed-off-by: Rudi Grinberg --- ocaml-lsp-server/src/signature_help.mli | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ocaml-lsp-server/src/signature_help.mli diff --git a/ocaml-lsp-server/src/signature_help.mli b/ocaml-lsp-server/src/signature_help.mli new file mode 100644 index 000000000..10014e38c --- /dev/null +++ b/ocaml-lsp-server/src/signature_help.mli @@ -0,0 +1,23 @@ +open Merlin_kernel +open Ocaml_parsing +open Ocaml_typing + +type parameter_info = + { label : Asttypes.arg_label + ; param_start : int + ; param_end : int + ; argument : Typedtree.expression option + } + +type application_signature = + { function_name : string option + ; function_position : Msource.position + ; signature : string + ; parameters : parameter_info list + ; active_param : int option + } + +val application_signature : + prefix:string + -> ('a * Merlin_specific.Browse_raw.node) list + -> application_signature option