Paths of documentation
Any possible referent
A referent that can contain signature items
A referent that can contain class signature items
A referent that can contain datatype items
The kind of an identifier directly corresponds to the kind of its referent.
There are four kinds of OCaml path:
These kinds do not directly correspond to the kind of their referent (e.g. a type path may refer to a class definition).
There are two kinds of OCaml path fragment:
These kinds do not directly correspond to the kind of their referent (e.g. a type path fragment may refer to a class definition).
There is one reference kind for each kind of referent. However, the kind of a reference does not refer to the kind of its referent, but to the kind with which the reference was annotated.
This means that reference kinds do not correspond directly to the kind of their referent because we used more relaxed rules when resolving a reference. For example, a reference annotated as being to a constructor can be resolved to the definition of an exception (which can be thought of a sort of constructor).
*
References to definitions