package ocamlformat-lib

  1. Overview
  2. Docs
OCaml Code Formatter

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocamlformat-0.28.1.tbz
sha256=70bda037d0bed961ed91bdb5198b2eeef542444750a8b015d80ccb94b3ff41fb
sha512=8de0517165c6f0cadcedcce66e57cb723956768a8068abd062243abb08fabf292283d0d284be230aa5647d0883a4dc7f28fcf1b70338a2b0c9b17a5bed1bbb71

doc/ocamlformat-lib.parser_extended/Ocamlformat_parser_extended/Ast_mapper/index.html

Module Ocamlformat_parser_extended.Ast_mapperSource

Sourcetype mapper = {
  1. arg_label : mapper -> Asttypes.arg_label -> Asttypes.arg_label;
  2. attribute : mapper -> Parsetree.attribute -> Parsetree.attribute;
  3. attributes : mapper -> Parsetree.attribute list -> Parsetree.attribute list;
  4. ext_attrs : mapper -> Parsetree.ext_attrs -> Parsetree.ext_attrs;
  5. infix_ext_attrs : mapper -> Parsetree.infix_ext_attrs -> Parsetree.infix_ext_attrs;
  6. binding_op : mapper -> Parsetree.binding_op -> Parsetree.binding_op;
  7. case : mapper -> Parsetree.case -> Parsetree.case;
  8. cases : mapper -> Parsetree.case list -> Parsetree.case list;
  9. class_declaration : mapper -> Parsetree.class_declaration -> Parsetree.class_declaration;
  10. class_description : mapper -> Parsetree.class_description -> Parsetree.class_description;
  11. class_expr : mapper -> Parsetree.class_expr -> Parsetree.class_expr;
  12. class_field : mapper -> Parsetree.class_field -> Parsetree.class_field;
  13. class_signature : mapper -> Parsetree.class_signature -> Parsetree.class_signature;
  14. class_structure : mapper -> Parsetree.class_structure -> Parsetree.class_structure;
  15. class_type : mapper -> Parsetree.class_type -> Parsetree.class_type;
  16. class_type_declaration : mapper -> Parsetree.class_type_declaration -> Parsetree.class_type_declaration;
  17. class_type_field : mapper -> Parsetree.class_type_field -> Parsetree.class_type_field;
  18. constant : mapper -> Parsetree.constant -> Parsetree.constant;
  19. constructor_declaration : mapper -> Parsetree.constructor_declaration -> Parsetree.constructor_declaration;
  20. directive_argument : mapper -> Parsetree.directive_argument -> Parsetree.directive_argument;
  21. expr : mapper -> Parsetree.expression -> Parsetree.expression;
  22. extension : mapper -> Parsetree.extension -> Parsetree.extension;
  23. extension_constructor : mapper -> Parsetree.extension_constructor -> Parsetree.extension_constructor;
  24. include_declaration : mapper -> Parsetree.include_declaration -> Parsetree.include_declaration;
  25. include_description : mapper -> Parsetree.include_description -> Parsetree.include_description;
  26. label_declaration : mapper -> Parsetree.label_declaration -> Parsetree.label_declaration;
  27. location : mapper -> Ocamlformat_ocaml_common.Location.t -> Ocamlformat_ocaml_common.Location.t;
  28. module_binding : mapper -> Parsetree.module_binding -> Parsetree.module_binding;
  29. module_declaration : mapper -> Parsetree.module_declaration -> Parsetree.module_declaration;
  30. module_substitution : mapper -> Parsetree.module_substitution -> Parsetree.module_substitution;
  31. module_expr : mapper -> Parsetree.module_expr -> Parsetree.module_expr;
  32. module_type : mapper -> Parsetree.module_type -> Parsetree.module_type;
  33. module_type_declaration : mapper -> Parsetree.module_type_declaration -> Parsetree.module_type_declaration;
  34. open_declaration : mapper -> Parsetree.open_declaration -> Parsetree.open_declaration;
  35. open_description : mapper -> Parsetree.open_description -> Parsetree.open_description;
  36. package_type : mapper -> Parsetree.package_type -> Parsetree.package_type;
  37. pat : mapper -> Parsetree.pattern -> Parsetree.pattern;
  38. payload : mapper -> Parsetree.payload -> Parsetree.payload;
  39. signature : mapper -> Parsetree.signature -> Parsetree.signature;
  40. signature_item : mapper -> Parsetree.signature_item -> Parsetree.signature_item;
  41. structure : mapper -> Parsetree.structure -> Parsetree.structure;
  42. structure_item : mapper -> Parsetree.structure_item -> Parsetree.structure_item;
  43. toplevel_directive : mapper -> Parsetree.toplevel_directive -> Parsetree.toplevel_directive;
  44. toplevel_phrase : mapper -> Parsetree.toplevel_phrase -> Parsetree.toplevel_phrase;
  45. typ : mapper -> Parsetree.core_type -> Parsetree.core_type;
  46. type_declaration : mapper -> Parsetree.type_declaration -> Parsetree.type_declaration;
  47. type_extension : mapper -> Parsetree.type_extension -> Parsetree.type_extension;
  48. type_exception : mapper -> Parsetree.type_exception -> Parsetree.type_exception;
  49. type_kind : mapper -> Parsetree.type_kind -> Parsetree.type_kind;
  50. value_binding : mapper -> Parsetree.value_binding -> Parsetree.value_binding;
  51. value_bindings : mapper -> Parsetree.value_bindings -> Parsetree.value_bindings;
  52. value_description : mapper -> Parsetree.value_description -> Parsetree.value_description;
  53. with_constraint : mapper -> Parsetree.with_constraint -> Parsetree.with_constraint;
  54. repl_phrase : mapper -> Parsetree.repl_phrase -> Parsetree.repl_phrase;
}
Sourceval map_fst : ('a -> 'b) -> ('a * 'c) -> 'b * 'c
Sourceval map_tuple : ('a -> 'b) -> ('c -> 'd) -> ('a * 'c) -> 'b * 'd
Sourceval map_tuple3 : ('a -> 'b) -> ('c -> 'd) -> ('e -> 'f) -> ('a * 'c * 'e) -> 'b * 'd * 'f
Sourceval map_opt : ('a -> 'b) -> 'a option -> 'b option
Sourceval map_tuple_elts : mapper -> (mapper -> 'a -> 'b) -> 'a Parsetree.labeled_tuple_element list -> 'b Parsetree.labeled_tuple_element list
Sourceval map_tuple_elts_with_pun : mapper -> (mapper -> 'a -> 'b) -> (mapper -> 'c -> 'd) -> ('c, 'a) Parsetree.labeled_tuple_element_with_pun list -> ('d, 'b) Parsetree.labeled_tuple_element_with_pun list
Sourcemodule FP : sig ... end
Sourcemodule Flag : sig ... end
Sourcemodule C : sig ... end
Sourcemodule T : sig ... end
Sourcemodule CT : sig ... end
Sourcemodule MT : sig ... end
Sourcemodule M : sig ... end
Sourcemodule E : sig ... end
Sourcemodule PVB : sig ... end
Sourcemodule P : sig ... end
Sourcemodule CE : sig ... end
Sourceval default_mapper : mapper