package merlin-lib
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=49b3b4c778c12125fc7405e73790b0b312d5d79749dd73d4838b6562a2533022
sha512=6350ff076ac61727c48bc098a05520c5d343f3323b2f3b6d7d69fdd568e51abca6945cbcbc3a6ae97fd198bd7bbdcae823fbd0f3f14a37972fe713da2ed14f2d
doc/merlin-lib.ocaml_typing/Ocaml_typing/Printtyp/index.html
Module Ocaml_typing.Printtyp
Source
type namespace := Shape.Sig_component_kind.t
Print a list of paths, using the same naming context to avoid name collisions
printed_signature sourcefile ppf sg
print the signature sg
of sourcefile
with potential warnings for name collisions
module type Printers := sig ... end
For compatibility with Format printers
include Printers
with type 'a printer := 'a Merlin_utils.Format_doc.format_printer
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.format_printer
val constructor_arguments :
Types.constructor_arguments Merlin_utils.Format_doc.format_printer
val extension_constructor :
Ident.t ->
Types.extension_constructor Merlin_utils.Format_doc.format_printer
Prints 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.format_printer
Prints only extension constructor without type signature: A of float
val value_description :
Ident.t ->
Types.value_description Merlin_utils.Format_doc.format_printer
val type_declaration :
Ident.t ->
Types.type_declaration Merlin_utils.Format_doc.format_printer
val modtype_declaration :
Ident.t ->
Types.modtype_declaration Merlin_utils.Format_doc.format_printer
val class_declaration :
Ident.t ->
Types.class_declaration Merlin_utils.Format_doc.format_printer
val cltype_declaration :
Ident.t ->
Types.class_type_declaration Merlin_utils.Format_doc.format_printer