package ast_generic

  1. Overview
  2. Docs
type 'any t =
  1. | Token of string * Tok.t
  2. | List of 'any t list
  3. | Tuple of 'any t list
  4. | Case of string * 'any t
  5. | Option of 'any t option
  6. | Any of 'any
val pp : (Ppx_deriving_runtime.Format.formatter -> 'any -> Ppx_deriving_runtime.unit) -> Ppx_deriving_runtime.Format.formatter -> 'any t -> Ppx_deriving_runtime.unit
val show : (Ppx_deriving_runtime.Format.formatter -> 'any -> Ppx_deriving_runtime.unit) -> 'any t -> Ppx_deriving_runtime.string
val equal : ('any -> 'any -> Ppx_deriving_runtime.bool) -> 'any t -> 'any t -> Ppx_deriving_runtime.bool
include Ppx_hash_lib.Hashable.S1 with type 'any t := 'any t
val hash_fold_t : (Base.Hash.state -> 'a -> Base.Hash.state) -> Base.Hash.state -> 'a t -> Base.Hash.state
val loc : _ t -> (Tok.t * Tok.t) option
val unsafe_loc : _ t -> Tok.t * Tok.t
val anys : 'any t -> 'any list
val map : map_any:('a -> 'b) -> 'a t -> 'b t
val visit : v_token:((string * Tok.t) -> unit) -> v_any:('any -> unit) -> 'any t -> unit