Module Merlin_analysis.Type_utilsSource

Sourcemodule Printtyp : sig ... end
Sourceval mod_smallerthan : int -> Ocaml_typing.Types.module_type -> int option

Check if module is smaller (= has less definition, counting nested ones) than a particular threshold. Return (Some n) if module has size n, or None otherwise (module is bigger than threshold). Used to skip printing big modules in completion.

type_in_env env ppf input parses input and prints its type on ppf. Returning true if it printed a type, false otherwise.

print_type_or_decl behaves like Printtyp.type_scheme, it prints the type expression, except if it is a type constructor and verbosity is set then it also prints the type declaration.

lookup_module is a fancier version of Env.lookup_module that also returns the module type.

Sourceval read_doc_attributes : Ocaml_parsing.Parsetree.attributes -> (string * Ocaml_parsing.Location.t) option

read_doc_attributes looks for a docstring in an attribute list.

Sourceval is_deprecated : Ocaml_parsing.Parsetree.attributes -> bool
Sourceval parse_longident : string -> Ocaml_parsing.Longident.t option