Module Parser_standard.Ast_mapper

type mapper = {
  1. attribute : mapper -> Parser_standard.Parsetree.attribute -> Parser_standard.Parsetree.attribute;
  2. attributes : mapper -> Parser_standard.Parsetree.attribute list -> Parser_standard.Parsetree.attribute list;
  3. binding_op : mapper -> Parser_standard.Parsetree.binding_op -> Parser_standard.Parsetree.binding_op;
  4. case : mapper -> Parser_standard.Parsetree.case -> Parser_standard.Parsetree.case;
  5. cases : mapper -> Parser_standard.Parsetree.case list -> Parser_standard.Parsetree.case list;
  6. class_declaration : mapper -> Parser_standard.Parsetree.class_declaration -> Parser_standard.Parsetree.class_declaration;
  7. class_description : mapper -> Parser_standard.Parsetree.class_description -> Parser_standard.Parsetree.class_description;
  8. class_expr : mapper -> Parser_standard.Parsetree.class_expr -> Parser_standard.Parsetree.class_expr;
  9. class_field : mapper -> Parser_standard.Parsetree.class_field -> Parser_standard.Parsetree.class_field;
  10. class_signature : mapper -> Parser_standard.Parsetree.class_signature -> Parser_standard.Parsetree.class_signature;
  11. class_structure : mapper -> Parser_standard.Parsetree.class_structure -> Parser_standard.Parsetree.class_structure;
  12. class_type : mapper -> Parser_standard.Parsetree.class_type -> Parser_standard.Parsetree.class_type;
  13. class_type_declaration : mapper -> Parser_standard.Parsetree.class_type_declaration -> Parser_standard.Parsetree.class_type_declaration;
  14. class_type_field : mapper -> Parser_standard.Parsetree.class_type_field -> Parser_standard.Parsetree.class_type_field;
  15. constant : mapper -> Parser_standard.Parsetree.constant -> Parser_standard.Parsetree.constant;
  16. constructor_declaration : mapper -> Parser_standard.Parsetree.constructor_declaration -> Parser_standard.Parsetree.constructor_declaration;
  17. expr : mapper -> Parser_standard.Parsetree.expression -> Parser_standard.Parsetree.expression;
  18. extension : mapper -> Parser_standard.Parsetree.extension -> Parser_standard.Parsetree.extension;
  19. extension_constructor : mapper -> Parser_standard.Parsetree.extension_constructor -> Parser_standard.Parsetree.extension_constructor;
  20. include_declaration : mapper -> Parser_standard.Parsetree.include_declaration -> Parser_standard.Parsetree.include_declaration;
  21. include_description : mapper -> Parser_standard.Parsetree.include_description -> Parser_standard.Parsetree.include_description;
  22. label_declaration : mapper -> Parser_standard.Parsetree.label_declaration -> Parser_standard.Parsetree.label_declaration;
  23. location : mapper -> Ocaml_common.Location.t -> Ocaml_common.Location.t;
  24. module_binding : mapper -> Parser_standard.Parsetree.module_binding -> Parser_standard.Parsetree.module_binding;
  25. module_declaration : mapper -> Parser_standard.Parsetree.module_declaration -> Parser_standard.Parsetree.module_declaration;
  26. module_substitution : mapper -> Parser_standard.Parsetree.module_substitution -> Parser_standard.Parsetree.module_substitution;
  27. module_expr : mapper -> Parser_standard.Parsetree.module_expr -> Parser_standard.Parsetree.module_expr;
  28. module_type : mapper -> Parser_standard.Parsetree.module_type -> Parser_standard.Parsetree.module_type;
  29. module_type_declaration : mapper -> Parser_standard.Parsetree.module_type_declaration -> Parser_standard.Parsetree.module_type_declaration;
  30. open_declaration : mapper -> Parser_standard.Parsetree.open_declaration -> Parser_standard.Parsetree.open_declaration;
  31. open_description : mapper -> Parser_standard.Parsetree.open_description -> Parser_standard.Parsetree.open_description;
  32. pat : mapper -> Parser_standard.Parsetree.pattern -> Parser_standard.Parsetree.pattern;
  33. payload : mapper -> Parser_standard.Parsetree.payload -> Parser_standard.Parsetree.payload;
  34. signature : mapper -> Parser_standard.Parsetree.signature -> Parser_standard.Parsetree.signature;
  35. signature_item : mapper -> Parser_standard.Parsetree.signature_item -> Parser_standard.Parsetree.signature_item;
  36. structure : mapper -> Parser_standard.Parsetree.structure -> Parser_standard.Parsetree.structure;
  37. structure_item : mapper -> Parser_standard.Parsetree.structure_item -> Parser_standard.Parsetree.structure_item;
  38. typ : mapper -> Parser_standard.Parsetree.core_type -> Parser_standard.Parsetree.core_type;
  39. type_declaration : mapper -> Parser_standard.Parsetree.type_declaration -> Parser_standard.Parsetree.type_declaration;
  40. type_extension : mapper -> Parser_standard.Parsetree.type_extension -> Parser_standard.Parsetree.type_extension;
  41. type_exception : mapper -> Parser_standard.Parsetree.type_exception -> Parser_standard.Parsetree.type_exception;
  42. type_kind : mapper -> Parser_standard.Parsetree.type_kind -> Parser_standard.Parsetree.type_kind;
  43. value_binding : mapper -> Parser_standard.Parsetree.value_binding -> Parser_standard.Parsetree.value_binding;
  44. value_description : mapper -> Parser_standard.Parsetree.value_description -> Parser_standard.Parsetree.value_description;
  45. with_constraint : mapper -> Parser_standard.Parsetree.with_constraint -> Parser_standard.Parsetree.with_constraint;
  46. directive_argument : mapper -> Parser_standard.Parsetree.directive_argument -> Parser_standard.Parsetree.directive_argument;
  47. toplevel_directive : mapper -> Parser_standard.Parsetree.toplevel_directive -> Parser_standard.Parsetree.toplevel_directive;
  48. toplevel_phrase : mapper -> Parser_standard.Parsetree.toplevel_phrase -> Parser_standard.Parsetree.toplevel_phrase;
}
val default_mapper : mapper
val tool_name : unit -> string
val apply : source:string -> target:string -> mapper -> unit
val run_main : (string list -> mapper) -> unit
val register_function : (string -> (string list -> mapper) -> unit) ref
val register : string -> (string list -> mapper) -> unit
val map_opt : ('a -> 'b) -> 'a option -> 'b option
val attribute_of_warning : Ocaml_common.Location.t -> string -> Parser_standard.Parsetree.attribute
val add_ppx_context_str : tool_name:string -> Parser_standard.Parsetree.structure -> Parser_standard.Parsetree.structure
val add_ppx_context_sig : tool_name:string -> Parser_standard.Parsetree.signature -> Parser_standard.Parsetree.signature
val drop_ppx_context_str : restore:bool -> Parser_standard.Parsetree.structure -> Parser_standard.Parsetree.structure
val drop_ppx_context_sig : restore:bool -> Parser_standard.Parsetree.signature -> Parser_standard.Parsetree.signature