Module OCAML_AST.OCAML_TRAVERSE

type 'a ast_lint_list = ('a, unit) Yalo.V1.YALO_TYPES.active_linters
type 'a ast_lint_list_with_loc = (Yalo.V1.YALO_TYPES.location * 'a, unit) Yalo.V1.YALO_TYPES.active_linters
type t = {
  1. file : Yalo.V1.YALO_TYPES.file;
  2. mutable longident : Ast_types.OCAML_AST.longident ast_lint_list_with_loc;
  3. mutable constant : Ast_types.OCAML_AST.constant ast_lint_list;
  4. mutable attribute : Ast_types.OCAML_AST.attribute ast_lint_list;
  5. mutable extension : Ast_types.OCAML_AST.extension ast_lint_list;
  6. mutable payload : Ast_types.OCAML_AST.payload ast_lint_list;
  7. mutable core_type : Ast_types.OCAML_AST.core_type ast_lint_list;
  8. mutable package_type : Ast_types.OCAML_AST.package_type ast_lint_list;
  9. mutable row_field : Ast_types.OCAML_AST.row_field ast_lint_list;
  10. mutable object_field : Ast_types.OCAML_AST.object_field ast_lint_list;
  11. mutable pattern : Ast_types.OCAML_AST.pattern ast_lint_list;
  12. mutable expression : Ast_types.OCAML_AST.expression ast_lint_list;
  13. mutable case : Ast_types.OCAML_AST.case ast_lint_list;
  14. mutable letop : Ast_types.OCAML_AST.letop ast_lint_list;
  15. mutable binding_op : Ast_types.OCAML_AST.binding_op ast_lint_list;
  16. mutable value_description : Ast_types.OCAML_AST.value_description ast_lint_list;
  17. mutable type_declaration : Ast_types.OCAML_AST.type_declaration ast_lint_list;
  18. mutable label_declaration : Ast_types.OCAML_AST.label_declaration ast_lint_list;
  19. mutable constructor_declaration : Ast_types.OCAML_AST.constructor_declaration ast_lint_list;
  20. mutable type_extension : Ast_types.OCAML_AST.type_extension ast_lint_list;
  21. mutable extension_constructor : Ast_types.OCAML_AST.extension_constructor ast_lint_list;
  22. mutable type_exception : Ast_types.OCAML_AST.type_exception ast_lint_list;
  23. mutable class_type : Ast_types.OCAML_AST.class_type ast_lint_list;
  24. mutable class_signature : Ast_types.OCAML_AST.class_signature ast_lint_list;
  25. mutable class_type_field : Ast_types.OCAML_AST.class_type_field ast_lint_list;
  26. mutable class_description : Ast_types.OCAML_AST.class_description ast_lint_list;
  27. mutable class_type_declaration : Ast_types.OCAML_AST.class_type_declaration ast_lint_list;
  28. mutable class_expr : Ast_types.OCAML_AST.class_expr ast_lint_list;
  29. mutable class_structure : Ast_types.OCAML_AST.class_structure ast_lint_list;
  30. mutable class_field : Ast_types.OCAML_AST.class_field ast_lint_list;
  31. mutable class_declaration : Ast_types.OCAML_AST.class_declaration ast_lint_list;
  32. mutable module_expr : Ast_types.OCAML_AST.module_expr ast_lint_list;
  33. mutable module_type : Ast_types.OCAML_AST.module_type ast_lint_list;
  34. mutable signature_item : Ast_types.OCAML_AST.signature_item ast_lint_list;
  35. mutable module_declaration : Ast_types.OCAML_AST.module_declaration ast_lint_list;
  36. mutable module_substitution : Ast_types.OCAML_AST.module_substitution ast_lint_list;
  37. mutable module_type_declaration : Ast_types.OCAML_AST.module_type_declaration ast_lint_list;
  38. mutable open_description : Ast_types.OCAML_AST.open_description ast_lint_list;
  39. mutable open_declaration : Ast_types.OCAML_AST.open_declaration ast_lint_list;
  40. mutable include_description : Ast_types.OCAML_AST.include_description ast_lint_list;
  41. mutable include_declaration : Ast_types.OCAML_AST.include_declaration ast_lint_list;
  42. mutable structure_item : Ast_types.OCAML_AST.structure_item ast_lint_list;
  43. mutable value_binding : Ast_types.OCAML_AST.value_binding ast_lint_list;
  44. mutable module_binding : Ast_types.OCAML_AST.module_binding ast_lint_list;
  45. mutable toplevel_directive : Ast_types.OCAML_AST.toplevel_directive ast_lint_list;
  46. mutable directive_argument : Ast_types.OCAML_AST.directive_argument ast_lint_list;
  47. mutable with_constraint : Ast_types.OCAML_AST.with_constraint ast_lint_list;
  48. mutable type_kind : Ast_types.OCAML_AST.type_kind ast_lint_list;
}
type node =
  1. | Node_binding_op of Ast_types.OCAML_AST.binding_op
  2. | Node_case of Ast_types.OCAML_AST.case
  3. | Node_class_declaration of Ast_types.OCAML_AST.class_declaration
  4. | Node_class_description of Ast_types.OCAML_AST.class_description
  5. | Node_class_expr of Ast_types.OCAML_AST.class_expr
  6. | Node_class_field of Ast_types.OCAML_AST.class_field
  7. | Node_class_signature of Ast_types.OCAML_AST.class_signature
  8. | Node_class_structure of Ast_types.OCAML_AST.class_structure
  9. | Node_class_type of Ast_types.OCAML_AST.class_type
  10. | Node_class_type_declaration of Ast_types.OCAML_AST.class_type_declaration
  11. | Node_class_type_field of Ast_types.OCAML_AST.class_type_field
  12. | Node_expression of Ast_types.OCAML_AST.expression
  13. | Node_extension_constructor of Ast_types.OCAML_AST.extension_constructor
  14. | Node_module_binding of Ast_types.OCAML_AST.module_binding
  15. | Node_module_declaration of Ast_types.OCAML_AST.module_declaration
  16. | Node_module_substitution of Ast_types.OCAML_AST.module_substitution
  17. | Node_module_expr of Ast_types.OCAML_AST.module_expr
  18. | Node_module_type of Ast_types.OCAML_AST.module_type
  19. | Node_module_type_declaration of Ast_types.OCAML_AST.module_type_declaration
  20. | Node_package_type of Ast_types.OCAML_AST.package_type
  21. | Node_pat of Ast_types.OCAML_AST.pattern
  22. | Node_row_field of Ast_types.OCAML_AST.row_field
  23. | Node_object_field of Ast_types.OCAML_AST.object_field
  24. | Node_open_declaration of Ast_types.OCAML_AST.open_declaration
  25. | Node_open_description of Ast_types.OCAML_AST.open_description
  26. | Node_signature of Ast_types.OCAML_AST.signature
  27. | Node_signature_item of Ast_types.OCAML_AST.signature_item
  28. | Node_structure of Ast_types.OCAML_AST.structure
  29. | Node_structure_item of Ast_types.OCAML_AST.structure_item
  30. | Node_core_type of Ast_types.OCAML_AST.core_type
  31. | Node_type_declaration of Ast_types.OCAML_AST.type_declaration
  32. | Node_type_extension of Ast_types.OCAML_AST.type_extension
  33. | Node_type_exception of Ast_types.OCAML_AST.type_exception
  34. | Node_type_kind of Ast_types.OCAML_AST.type_kind
  35. | Node_value_binding of Ast_types.OCAML_AST.value_binding
  36. | Node_value_description of Ast_types.OCAML_AST.value_description
  37. | Node_with_constraint of Ast_types.OCAML_AST.with_constraint
  38. | Node_attribute of Ast_types.OCAML_AST.attribute
  39. | Node_extension of Ast_types.OCAML_AST.extension
  40. | Node_payload of Ast_types.OCAML_AST.payload
  41. | Node_letop of Ast_types.OCAML_AST.letop
  42. | Node_label_declaration of Ast_types.OCAML_AST.label_declaration
  43. | Node_constructor_declaration of Ast_types.OCAML_AST.constructor_declaration
  44. | Node_include_description of Ast_types.OCAML_AST.include_description
  45. | Node_include_declaration of Ast_types.OCAML_AST.include_declaration
  46. | Node_toplevel_directive of Ast_types.OCAML_AST.toplevel_directive
  47. | Node_directive_argument of Ast_types.OCAML_AST.directive_argument
val string_of_node : node -> string
val node_stack_ref : node list Stdlib.ref
val node_stack : unit -> node list
val print_node_stack : unit -> unit