package reason
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=9478724b01767320064ba950ddea24c5df0eefdcdd8ff1324ba9ccd646258979
sha512=c5dcec810a1981b78b19271a8a255f4087628514725d6818419b141be6346a62b28fe8d0f10855efe420ede2839bfe562aa5abf21f29d66250e5c0d02323d6d8
doc/reason.ocaml-migrate-parsetree/Reason_migrate_parsetree/Ast_409/Docstrings/index.html
Module Ast_409.Docstrings
Source
(Re)Initialise all docstring state
Emit warnings for unattached and ambiguous docstrings
Docstrings
Documentation comments
Set functions
These functions are used by the lexer to associate docstrings to the locations of tokens.
Docstrings immediately preceding a token
Docstrings immediately following a token
Docstrings not immediately adjacent to a token
Docstrings immediately following the token which precedes this one
Docstrings immediately preceding the token which follows this one
Items
The docs
type represents documentation attached to an item.
Convert item documentation to attributes and add them to an attribute list
Fetch the item documentation for the current symbol. This also marks this documentation (for ambiguity warnings).
Fetch the item documentation for the symbols between two positions. This also marks this documentation (for ambiguity warnings).
Mark the item documentation for the current symbol (for ambiguity warnings).
Mark as associated the item documentation for the symbols between two positions (for ambiguity warnings)
Fields and constructors
The info
type represents documentation attached to a field or constructor.
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.
Convert text to attributes and add them to an attribute list
Extra text
There may be additional text attached to the delimiters of a block (e.g. struct
and end
). This is fetched by the following functions, which are applied to the contents of the block rather than the delimiters.
Fetch additional text preceding the symbol at the given position
Fetch additional text following the symbol at the given position