package merlin-lib
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=5642cde8486a84aad98fa5c590b70e8dcc6074d7fbdb3b9b8c46b2c5b42f653b
sha512=1d7a7751157e393d3ae248ef5ae24a6b4e81430666c61cc51a3d0ec35804523317036f3d7a3c7f18a7554337f4e5f5989fb677865b261ece3fd2b317903570ba
doc/merlin-lib.ocaml_typing/Ocaml_typing/Msupport/index.html
Module Ocaml_typing.MsupportSource
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.attributesExtend 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 listRetrieve 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