Module Ocaml_typing.Tast_iteratorSource

Allows the implementation of typed tree inspection using open recursion

Sourcetype iterator = {
  1. attribute : iterator -> Typedtree.attribute -> unit;
  2. attributes : iterator -> Typedtree.attributes -> unit;
  3. binding_op : iterator -> Typedtree.binding_op -> unit;
  4. case : 'k. iterator -> 'k Typedtree.case -> unit;
  5. class_declaration : iterator -> Typedtree.class_declaration -> unit;
  6. class_description : iterator -> Typedtree.class_description -> unit;
  7. class_expr : iterator -> Typedtree.class_expr -> unit;
  8. class_field : iterator -> Typedtree.class_field -> unit;
  9. class_signature : iterator -> Typedtree.class_signature -> unit;
  10. class_structure : iterator -> Typedtree.class_structure -> unit;
  11. class_type : iterator -> Typedtree.class_type -> unit;
  12. class_type_declaration : iterator -> Typedtree.class_type_declaration -> unit;
  13. class_type_field : iterator -> Typedtree.class_type_field -> unit;
  14. env : iterator -> Env.t -> unit;
  15. expr : iterator -> Typedtree.expression -> unit;
  16. extension_constructor : iterator -> Typedtree.extension_constructor -> unit;
  17. include_declaration : iterator -> Typedtree.include_declaration -> unit;
  18. include_description : iterator -> Typedtree.include_description -> unit;
  19. location : iterator -> Ocaml_parsing.Location.t -> unit;
  20. module_binding : iterator -> Typedtree.module_binding -> unit;
  21. module_coercion : iterator -> Typedtree.module_coercion -> unit;
  22. module_declaration : iterator -> Typedtree.module_declaration -> unit;
  23. module_substitution : iterator -> Typedtree.module_substitution -> unit;
  24. module_expr : iterator -> Typedtree.module_expr -> unit;
  25. module_type : iterator -> Typedtree.module_type -> unit;
  26. module_type_declaration : iterator -> Typedtree.module_type_declaration -> unit;
  27. package_type : iterator -> Typedtree.package_type -> unit;
  28. pat : 'k. iterator -> 'k Typedtree.general_pattern -> unit;
  29. row_field : iterator -> Typedtree.row_field -> unit;
  30. object_field : iterator -> Typedtree.object_field -> unit;
  31. open_declaration : iterator -> Typedtree.open_declaration -> unit;
  32. open_description : iterator -> Typedtree.open_description -> unit;
  33. signature : iterator -> Typedtree.signature -> unit;
  34. signature_item : iterator -> Typedtree.signature_item -> unit;
  35. structure : iterator -> Typedtree.structure -> unit;
  36. structure_item : iterator -> Typedtree.structure_item -> unit;
  37. typ : iterator -> Typedtree.core_type -> unit;
  38. type_declaration : iterator -> Typedtree.type_declaration -> unit;
  39. type_declarations : iterator -> (Ocaml_parsing.Asttypes.rec_flag * Typedtree.type_declaration list) -> unit;
  40. type_extension : iterator -> Typedtree.type_extension -> unit;
  41. type_exception : iterator -> Typedtree.type_exception -> unit;
  42. type_kind : iterator -> Typedtree.type_kind -> unit;
  43. value_binding : iterator -> Typedtree.value_binding -> unit;
  44. value_bindings : iterator -> (Ocaml_parsing.Asttypes.rec_flag * Typedtree.value_binding list) -> unit;
  45. value_description : iterator -> Typedtree.value_description -> unit;
  46. with_constraint : iterator -> Typedtree.with_constraint -> unit;
  47. item_declaration : iterator -> Typedtree.item_declaration -> unit;
}
Sourceval default_iterator : iterator