package ocamlformat-lib

  1. Overview
  2. Docs
Auto-formatter for OCaml code

Install

Dune Dependency

Authors

Maintainers

Sources

ocamlformat-0.25.1.tbz
sha256=dc8f2a330ca3930b36cacb2623bb360ed8bdf6e4a8acd293dbd9e2241a6fd33d
sha512=b28f545425fb5375447c90022d065dc7fd51ed2f66d8c1f65a71a6ad2465d039a8686e8f18249e5ad3a2362fee6149c855ef30eb45fb9d06d743a53d26b3e26f

doc/ocamlformat-lib.parser_extended/Parser_extended/Printast/index.html

Module Parser_extended.PrintastSource

Raw printer for Parsetree

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

Sourceval interface : Format.formatter -> Parsetree.signature_item list -> unit
Sourceval implementation : Format.formatter -> Parsetree.structure_item list -> unit
Sourceval repl_phrase : Format.formatter -> Parsetree.repl_phrase -> unit
Sourceval expression : Format.formatter -> Parsetree.expression -> unit
Sourceval structure : int -> Format.formatter -> Parsetree.structure -> unit
Sourceval payload : Format.formatter -> Parsetree.payload -> unit
Sourceval core_type : Format.formatter -> Parsetree.core_type -> unit
Sourceval module_type : Format.formatter -> Parsetree.module_type -> unit
Sourceval pattern : Format.formatter -> Parsetree.pattern -> unit
Sourceval type_declaration : Format.formatter -> Parsetree.type_declaration -> unit
Sourceval let_binding : Format.formatter -> Parsetree.let_binding -> unit
Sourceval module_binding : Format.formatter -> Parsetree.module_binding -> unit
Sourceval module_declaration : Format.formatter -> Parsetree.module_declaration -> unit
Sourceval class_expr : Format.formatter -> Parsetree.class_expr -> unit
Sourceval class_type : Format.formatter -> Parsetree.class_type -> unit
Sourceval class_field : Format.formatter -> Parsetree.class_field -> unit
Sourceval class_type_field : Format.formatter -> Parsetree.class_type_field -> unit
Sourceval module_expr : Format.formatter -> Parsetree.module_expr -> unit
Sourceval structure_item : Format.formatter -> Parsetree.structure_item -> unit
Sourceval signature_item : Format.formatter -> Parsetree.signature_item -> unit
Sourcetype 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;
}
Sourceval cmts : cmts option ref
OCaml

Innovation. Community. Security.