package ast_generic

  1. Overview
  2. Docs
type visitor_in = {
  1. kexpr : ((AST_generic.expr -> unit) * visitor_out) -> AST_generic.expr -> unit;
  2. kstmt : ((AST_generic.stmt -> unit) * visitor_out) -> AST_generic.stmt -> unit;
  3. kstmts : ((AST_generic.stmt list -> unit) * visitor_out) -> AST_generic.stmt list -> unit;
  4. ktype_ : ((AST_generic.type_ -> unit) * visitor_out) -> AST_generic.type_ -> unit;
  5. kpattern : ((AST_generic.pattern -> unit) * visitor_out) -> AST_generic.pattern -> unit;
  6. kfield : ((AST_generic.field -> unit) * visitor_out) -> AST_generic.field -> unit;
  7. kfields : ((AST_generic.field list -> unit) * visitor_out) -> AST_generic.field list -> unit;
  8. kattr : ((AST_generic.attribute -> unit) * visitor_out) -> AST_generic.attribute -> unit;
  9. kpartial : ((AST_generic.partial -> unit) * visitor_out) -> AST_generic.partial -> unit;
  10. kdef : ((AST_generic.definition -> unit) * visitor_out) -> AST_generic.definition -> unit;
  11. kdir : ((AST_generic.directive -> unit) * visitor_out) -> AST_generic.directive -> unit;
  12. kparam : ((AST_generic.parameter -> unit) * visitor_out) -> AST_generic.parameter -> unit;
  13. ktparam : ((AST_generic.type_parameter -> unit) * visitor_out) -> AST_generic.type_parameter -> unit;
  14. kcatch : ((AST_generic.catch -> unit) * visitor_out) -> AST_generic.catch -> unit;
  15. kident : ((AST_generic.ident -> unit) * visitor_out) -> AST_generic.ident -> unit;
  16. kname : ((AST_generic.name -> unit) * visitor_out) -> AST_generic.name -> unit;
  17. kentity : ((AST_generic.entity -> unit) * visitor_out) -> AST_generic.entity -> unit;
  18. kfunction_definition : ((AST_generic.function_definition -> unit) * visitor_out) -> AST_generic.function_definition -> unit;
  19. kclass_definition : ((AST_generic.class_definition -> unit) * visitor_out) -> AST_generic.class_definition -> unit;
  20. kinfo : ((AST_generic.tok -> unit) * visitor_out) -> AST_generic.tok -> unit;
  21. kid_info : ((AST_generic.id_info -> unit) * visitor_out) -> AST_generic.id_info -> unit;
  22. ksvalue : ((AST_generic.svalue -> unit) * visitor_out) -> AST_generic.svalue -> unit;
  23. kargument : ((AST_generic.argument -> unit) * visitor_out) -> AST_generic.argument -> unit;
  24. klit : ((AST_generic.literal -> unit) * visitor_out) -> AST_generic.literal -> unit;
  25. ktodo : ((AST_generic.todo_kind -> unit) * visitor_out) -> AST_generic.todo_kind -> unit;
  26. kraw : ((AST_generic.raw_tree -> unit) * visitor_out) -> AST_generic.raw_tree -> unit;
}
and visitor_out = AST_generic.any -> unit
val default_visitor : visitor_in
val mk_visitor : ?vardef_assign:bool -> ?flddef_assign:bool -> ?attr_expr:bool -> visitor_in -> visitor_out
  • parameter vardef_assign

    VarDef-Assign equivalence (default is false)

  • parameter flddef_assign

    FieldDef-Assign equivalence (default is false)

  • parameter attr_expr

    Attribute-expression equivalence (default is false)

val ii_of_any : AST_generic.any -> Parse_info.t list
val first_info_of_any : AST_generic.any -> Parse_info.t
val range_of_tokens : Parse_info.t list -> Parse_info.t * Parse_info.t