package merlin-lib
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=67da3b34f2fea07678267309f61da4a2c6f08298de0dc59655b8d30fd8269af1
sha512=1fb3b5180d36aa82b82a319e15b743b802b6888f0dc67645baafdb4e18dfc23a7b90064ec9bc42f7424061cf8cde7f8839178d8a8537bf4596759f3ff4891873
doc/merlin-lib.ocaml_parsing/Ocaml_parsing/Docstrings/index.html
Module Ocaml_parsing.Docstrings
Source
Documentation comments
Warning: this module is unstable and part of compiler-libs.
(Re)Initialise all docstring state
Emit warnings for unattached and ambiguous docstrings
Docstrings
Documentation comments
Create a docstring
Get the location of a docstring
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