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 : Stdlib.Format.formatter -> Parsetree.signature_item list -> unit
val implementation : Stdlib.Format.formatter -> Parsetree.structure_item list -> unit
val top_phrase : Stdlib.Format.formatter -> Parsetree.toplevel_phrase -> unit
val repl_phrase : Stdlib.Format.formatter -> Parsetree.repl_phrase -> unit
val expression : Stdlib.Format.formatter -> Parsetree.expression -> unit
val structure : int -> Stdlib.Format.formatter -> Parsetree.structure -> unit
val payload : Stdlib.Format.formatter -> Parsetree.payload -> unit
val core_type : Stdlib.Format.formatter -> Parsetree.core_type -> unit
val module_type : Stdlib.Format.formatter -> Parsetree.module_type -> unit
val pattern : Stdlib.Format.formatter -> Parsetree.pattern -> unit
val type_declaration : Stdlib.Format.formatter -> Parsetree.type_declaration -> unit
val let_binding : Stdlib.Format.formatter -> Parsetree.let_binding -> unit
val module_binding : Stdlib.Format.formatter -> Parsetree.module_binding -> unit
val module_declaration : Stdlib.Format.formatter -> Parsetree.module_declaration -> unit
val class_expr : Stdlib.Format.formatter -> Parsetree.class_expr -> unit
val class_type : Stdlib.Format.formatter -> Parsetree.class_type -> unit
val class_field : Stdlib.Format.formatter -> Parsetree.class_field -> unit
val class_type_field : Stdlib.Format.formatter -> Parsetree.class_type_field -> unit
val module_expr : Stdlib.Format.formatter -> Parsetree.module_expr -> unit
val structure_item : Stdlib.Format.formatter -> Parsetree.structure_item -> unit
val signature_item : Stdlib.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 Stdlib.ref
OCaml

Innovation. Community. Security.