package merlin-lib
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=67da3b34f2fea07678267309f61da4a2c6f08298de0dc59655b8d30fd8269af1
sha512=1fb3b5180d36aa82b82a319e15b743b802b6888f0dc67645baafdb4e18dfc23a7b90064ec9bc42f7424061cf8cde7f8839178d8a8537bf4596759f3ff4891873
doc/merlin-lib.ocaml_typing/Ocaml_typing/Msupport/index.html
Module Ocaml_typing.Msupport
Source
Raise an error that can be caught: normal flow is resumed if a catch_errors
handler was installed.
Resume after error: like raise_error
, but if a handler was provided a Resume exception is raised. This allows to specify a special case when an error is caught.
Installing (and removing) error handlers.
Any raise_error
invoked inside catch_errors will be added to the list.
Temporary disable catching errors
Returns a reference initially set to false that will be set to true when a type error is raised.
Warnings can also be stored in the caught exception list, wrapped inside this exception
Turn saved types from Cmt_format into attributes
val recovery_attributes :
Ocaml_parsing.Parsetree.attributes ->
Ocaml_parsing.Parsetree.attributes
Extend the given attributes with an incorrect attribute and the saved types after turning them into attributes
val get_saved_types_from_attributes :
Ocaml_parsing.Parsetree.attributes ->
Cmt_format.binary_part list
Retrieve saved types that were turned into attributes
val with_saved_types :
?warning_attribute:Ocaml_parsing.Parsetree.attributes ->
?save_part:('a -> Cmt_format.binary_part) ->
(unit -> 'a) ->
'a