package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Raw printer for Parsetree

Warning: this module is unstable and part of compiler-libs.

val interface : Format.formatter -> Parsetree.signature_item list -> unit
val implementation : Format.formatter -> Parsetree.structure_item list -> unit
val top_phrase : Format.formatter -> Parsetree.toplevel_phrase -> unit
val repl_phrase : Format.formatter -> Parsetree.repl_phrase -> unit
val expression : Format.formatter -> Parsetree.expression -> unit
val structure : int -> Format.formatter -> Parsetree.structure -> unit
val payload : Format.formatter -> Parsetree.payload -> unit
val core_type : Format.formatter -> Parsetree.core_type -> unit
val module_type : Format.formatter -> Parsetree.module_type -> unit
val pattern : Format.formatter -> Parsetree.pattern -> unit
val type_declaration : Format.formatter -> Parsetree.type_declaration -> unit
val let_binding : Format.formatter -> Parsetree.let_binding -> unit
val module_binding : Format.formatter -> Parsetree.module_binding -> unit
val module_declaration : Format.formatter -> Parsetree.module_declaration -> unit
val class_expr : Format.formatter -> Parsetree.class_expr -> unit
val class_type : Format.formatter -> Parsetree.class_type -> unit
val class_field : Format.formatter -> Parsetree.class_field -> unit
val class_type_field : Format.formatter -> Parsetree.class_type_field -> unit
val module_expr : Format.formatter -> Parsetree.module_expr -> unit
val structure_item : Format.formatter -> Parsetree.structure_item -> unit
val signature_item : Format.formatter -> Parsetree.signature_item -> unit
type cmts = {
  1. before : Ocaml_common.Location.t -> string list option;
  2. within : Ocaml_common.Location.t -> string list option;
  3. after : Ocaml_common.Location.t -> string list option;
}
val cmts : cmts option ref
OCaml

Innovation. Community. Security.