package libsail

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Try to find the annotation closest to the provided location (which can be in any format, as long as we can tell if it is smaller than any other location). Note that this function makes no guarantees about finding the closest annotation or even finding an annotation at all. This is used by the LSP to provide type-at-cursor functionality and we don't mind if it's a bit fuzzy in that context.

Parameters

module Loc : sig ... end

Signature

val find_annot_ast : Loc.t -> ('a, 'b) Ast_defs.ast -> (Parse_ast.l * 'a) option
OCaml

Innovation. Community. Security.