Odoc_model.Fold
SourceThis module allows to fold over odoc values. It is notably used to construct a search database of every relevant item. It appear to be very generic but in reality it is quite specialized to fold over searchable items, and not every kind of odoc value you could fold over.
type item =
| CompilationUnit of Lang.Compilation_unit.t
| TypeDecl of Lang.TypeDecl.t
| Module of Lang.Module.t
| Value of Lang.Value.t
| Exception of Lang.Exception.t
| ClassType of Lang.ClassType.t
| Method of Lang.Method.t
| Class of Lang.Class.t
| Extension of Lang.Extension.t
| ModuleType of Lang.ModuleType.t
| Doc of Comment.docs_or_stop
The type of items you can fold over
Bellow are the folding functions. For items that may contain others, such as signature
, it folds recursively on the sub-items. It does not recurse into internal items.