package ocaml-compiler
First alpha release of OCaml 5.5.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
5.5.0-alpha1.tar.gz
sha256=9b78c8734c4e1c2efa852326e0dce8b24f8c8d0fbd01645b6165c9a9b15898df
doc/odoc_info/Odoc_info/Parameter/index.html
Module Odoc_info.Parameter
Representation and manipulation of method / function / class / module parameters.
Types
type simple_name = Odoc_parameter.simple_name = {sn_name : string;sn_type : Types.type_expr;mutable sn_text : text option;
}Representation of a simple parameter name
type param_info = Odoc_parameter.param_info = | Simple_name of simple_name| Tuple of param_info list * Types.type_expr
Representation of parameter names. We need it to represent parameter names in tuples. The value Tuple ([], t) stands for an anonymous parameter.
type parameter = param_infoA parameter is just a param_info.
Functions
val complete_name : parameter -> stringAccess to the name as a string. For tuples, parentheses and commas are added.
val typ : parameter -> Types.type_exprAccess to the complete type.
val names : parameter -> string listAccess to the list of names ; only one for a simple parameter, or a list for a tuple.
val type_by_name : parameter -> string -> Types.type_exprAccess to the type of a specific name.