package reason

  1. Overview
  2. Docs
Reason: Syntax & Toolchain for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

reason-3.8.2.tbz
sha256=7adcc45db20b8def82adf2712211fb8ed844328489752e8edf74281bc1eb2ef2
sha512=45822ecf4b19b892e1d150fd7f7a80af18df576b204647d4bbb9a18ac591a690f9b5338789ecccacb2d6b6354dbc32ff4a3574cc8b82b777e21cb8729f502f95

doc/reason.ocaml-migrate-parsetree/Reason_omp/Ast_407/Docstrings/index.html

Module Ast_407.DocstringsSource

Docstrings

Sourcetype docstring

Documentation comments

Sourceval docstring : string -> Location.t -> docstring

Create a docstring

Sourceval docstring_body : docstring -> string

Get the text of a docstring

Sourceval docstring_loc : docstring -> Location.t

Get the location of a docstring

Items

The docs type represents documentation attached to an item.

Sourcetype docs = {
  1. docs_pre : docstring option;
  2. docs_post : docstring option;
}
Sourceval empty_docs : docs

Convert item documentation to attributes and add them to an attribute list

Fields and constructors

The info type represents documentation attached to a field or constructor.

Sourcetype info = docstring option
Sourceval empty_info : info

Convert field info to attributes and add them to an attribute list

Unattached comments

The text type represents documentation which is not attached to anything.

Sourcetype text = docstring list
Sourceval empty_text : text
Sourceval empty_text_lazy : text Lazy.t

Convert text to attributes and add them to an attribute list