package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Str = Ast_helper.Str
type 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. binding_op : mapper -> Parsetree.binding_op -> Parsetree.binding_op;
  6. case : mapper -> Parsetree.case -> Parsetree.case;
  7. cases : mapper -> Parsetree.case list -> Parsetree.case list;
  8. class_declaration : mapper -> Parsetree.class_declaration -> Parsetree.class_declaration;
  9. class_description : mapper -> Parsetree.class_description -> Parsetree.class_description;
  10. class_expr : mapper -> Parsetree.class_expr -> Parsetree.class_expr;
  11. class_field : mapper -> Parsetree.class_field -> Parsetree.class_field;
  12. class_signature : mapper -> Parsetree.class_signature -> Parsetree.class_signature;
  13. class_structure : mapper -> Parsetree.class_structure -> Parsetree.class_structure;
  14. class_type : mapper -> Parsetree.class_type -> Parsetree.class_type;
  15. class_type_declaration : mapper -> Parsetree.class_type_declaration -> Parsetree.class_type_declaration;
  16. class_type_field : mapper -> Parsetree.class_type_field -> Parsetree.class_type_field;
  17. constant : mapper -> Parsetree.constant -> Parsetree.constant;
  18. constructor_declaration : mapper -> Parsetree.constructor_declaration -> Parsetree.constructor_declaration;
  19. expr : mapper -> Parsetree.expression -> Parsetree.expression;
  20. extension : mapper -> Parsetree.extension -> Parsetree.extension;
  21. extension_constructor : mapper -> Parsetree.extension_constructor -> Parsetree.extension_constructor;
  22. include_declaration : mapper -> Parsetree.include_declaration -> Parsetree.include_declaration;
  23. include_description : mapper -> Parsetree.include_description -> Parsetree.include_description;
  24. label_declaration : mapper -> Parsetree.label_declaration -> Parsetree.label_declaration;
  25. location : mapper -> Ocamlformat_ocaml_common.Location.t -> Ocamlformat_ocaml_common.Location.t;
  26. module_binding : mapper -> Parsetree.module_binding -> Parsetree.module_binding;
  27. module_declaration : mapper -> Parsetree.module_declaration -> Parsetree.module_declaration;
  28. module_substitution : mapper -> Parsetree.module_substitution -> Parsetree.module_substitution;
  29. module_expr : mapper -> Parsetree.module_expr -> Parsetree.module_expr;
  30. module_type : mapper -> Parsetree.module_type -> Parsetree.module_type;
  31. module_type_declaration : mapper -> Parsetree.module_type_declaration -> Parsetree.module_type_declaration;
  32. open_declaration : mapper -> Parsetree.open_declaration -> Parsetree.open_declaration;
  33. open_description : mapper -> Parsetree.open_description -> Parsetree.open_description;
  34. pat : mapper -> Parsetree.pattern -> Parsetree.pattern;
  35. payload : mapper -> Parsetree.payload -> Parsetree.payload;
  36. signature : mapper -> Parsetree.signature -> Parsetree.signature;
  37. signature_item : mapper -> Parsetree.signature_item -> Parsetree.signature_item;
  38. structure : mapper -> Parsetree.structure -> Parsetree.structure;
  39. structure_item : mapper -> Parsetree.structure_item -> Parsetree.structure_item;
  40. toplevel_directive : mapper -> Parsetree.toplevel_directive -> Parsetree.toplevel_directive;
  41. toplevel_phrase : mapper -> Parsetree.toplevel_phrase -> Parsetree.toplevel_phrase;
  42. typ : mapper -> Parsetree.core_type -> Parsetree.core_type;
  43. type_declaration : mapper -> Parsetree.type_declaration -> Parsetree.type_declaration;
  44. type_extension : mapper -> Parsetree.type_extension -> Parsetree.type_extension;
  45. type_exception : mapper -> Parsetree.type_exception -> Parsetree.type_exception;
  46. type_kind : mapper -> Parsetree.type_kind -> Parsetree.type_kind;
  47. value_binding : mapper -> Parsetree.value_binding -> Parsetree.value_binding;
  48. value_bindings : mapper -> Parsetree.value_bindings -> Parsetree.value_bindings;
  49. value_description : mapper -> Parsetree.value_description -> Parsetree.value_description;
  50. with_constraint : mapper -> Parsetree.with_constraint -> Parsetree.with_constraint;
  51. directive_argument : mapper -> Parsetree.directive_argument -> Parsetree.directive_argument;
  52. repl_phrase : mapper -> Parsetree.repl_phrase -> Parsetree.repl_phrase;
}
val map_fst : ('a -> 'b) -> ('a * 'c) -> 'b * 'c
val map_tuple : ('a -> 'b) -> ('c -> 'd) -> ('a * 'c) -> 'b * 'd
val map_tuple3 : ('a -> 'b) -> ('c -> 'd) -> ('e -> 'f) -> ('a * 'c * 'e) -> 'b * 'd * 'f
val map_opt : ('a -> 'b) -> 'a option -> 'b option
val map_arg_label : mapper -> Asttypes.arg_label -> Asttypes.arg_label
module FP : sig ... end
module Flag : sig ... end
module C : sig ... end
module T : sig ... end
module CT : sig ... end
module MT : sig ... end
module M : sig ... end
module E : sig ... end
module PVB : sig ... end
module P : sig ... end
module CE : sig ... end
val default_mapper : mapper
OCaml

Innovation. Community. Security.