Skip to content

Commit

Permalink
refactor: add signature_help mli (#913)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored Nov 5, 2022
1 parent dbf854e commit 23c0e56
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ocaml-lsp-server/src/signature_help.mli
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 23c0e56

Please sign in to comment.