package ocamlformat-lib

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

Module Ocamlformat_lib.CmtSource

Sourcetype t
Sourceval is_docstring : t -> Ocamlformat_stdlib.bool
include Ocamlformat_stdlib.Comparator.S with type t := t
type comparator_witness
val comparator : (t, comparator_witness) Base__Comparator.comparator
Sourcetype error = {
  1. kind : [ `Added of t | `Modified of t * t | `Dropped of t ];
  2. cmt_kind : [ `Comment | `Doc_comment ];
}
Sourcetype pos =
  1. | Before
  2. | Within
  3. | After
Sourcetype loc = t
Sourcemodule Comparator_no_loc : sig ... end

Detect and remove the baseline indentation of a comment or a code block. offset is the column number at which the first line starts.

OCaml

Innovation. Community. Security.