package merlin-lib
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=cc3c7c01f19a454c96f6bc8a39538023e01042519f001a895fd61488e2b49fb5
sha512=4268a932a8494023699abd98e0d52deb6f201f656863849db230dc8692050e0fe00cc25a50d70e902410f17a27268fd8335c32636f616ef012cf86fc9a43e019
doc/merlin-lib.ocaml_typing/Ocaml_typing/Printtyp/Doc/index.html
Module Printtyp.DocSource
Call the function using the environment for type path shortening This affects all the printing functions below Also, if ~error:true, then disable the loading of cmis
Print a type path taking account of -short-paths. Calls should be within wrap_printing_env.
Print out a type. This will pick names for type variables, and will not reuse names for common type variables shared across multiple type expressions. (It will also reset the printing state, which matters for other type formatters such as prepared_type_expr.) If you want multiple types to use common names for type variables, see Out_type.prepare_for_printing and Out_type.prepared_type_expr.
shared_type_scheme is very similar to type_scheme, but does not reset the printing context first. This is intended to be used in cases where the printing should have a particularly wide context, such as documentation generators; most use cases, such as error messages, have narrower contexts for which type_scheme is better suited.
val type_expansion :
Out_type.type_or_scheme ->
Errortrace.expanded_type Merlin_utils.Format_doc.printerval extension_constructor :
Ident.t ->
Types.extension_constructor Merlin_utils.Format_doc.printerPrints extension constructor with the type signature: type ('a, 'b) bar += A of float
val extension_only_constructor :
Ident.t ->
Types.extension_constructor Merlin_utils.Format_doc.printerPrints only extension constructor without type signature: A of float
val modtype_declaration :
Ident.t ->
Types.modtype_declaration Merlin_utils.Format_doc.printerval cltype_declaration :
Ident.t ->
Types.class_type_declaration Merlin_utils.Format_doc.printer