Sexp_app_pattern.Output_methodmodule Format : sig ... endmodule Wrap_mode : sig ... endtype _ t = | Formats : _ Wrap_mode.t * Format.t list -> Core.Sexp.t list tEmbed captures in the specified formats
*)| List : _ Wrap_mode.t -> Core.Sexp.t tReturn different capture expressions' results as a Sexp.List. In the case of Unwrap_always, the sequences consumed by each capture expression are concatenated, so the list may be longer (or shorter) than the number of capture expressions.
| Record : _ Wrap_mode.t -> Core.Sexp.t tReturn captures as a sexp record where the field names are the labels of the capturing expressions. In the case of Unwrap_always, the sequences consumed by each capture expression have the field name consed onto them, so the result may not actually be a list of pairs!
| Single_capture : 'query_result Wrap_mode.t -> 'query_result tExpect exactly one capture in the pattern, and return its captured contents.
*)| Map : Core.Sexp.t list Core.String.Map.t tReturn a map from capture name to captures. Similar to doing Record Wrap_always and then [%of_sexp: Sexp.t list String.Map.t]
val sexp_of_t : ('a__001_ -> Sexplib0.Sexp.t) -> 'a__001_ t -> Sexplib0.Sexp.tval default_method : Query.t -> wrap_mode:_ Wrap_mode.t -> some_output_methodDetermine a default output method to use based on whether the query contains numbered or named captures.