Module Odoc_parser.Ast

type !'a with_location
type style = [
  1. | `Bold
  2. | `Emphasis
  3. | `Italic
  4. | `Subscript
  5. | `Superscript
]
type reference_kind = [
  1. | `Simple
  2. | `With_text
]
type inline_element = [
  1. | `Code_span of string
  2. | `Math_span of string
  3. | `Raw_markup of string option * string
  4. | `Reference of reference_kind * string with_location * inline_element with_location list
  5. | `Space of string
  6. | `Styled of style * inline_element with_location list
  7. | `Word of string
]
type nestable_block_element = [
  1. | `Code_block of (string with_location * string with_location option) option * string with_location
  2. | `List of [ `Ordered | `Unordered ] * [ `Heavy | `Light ] * nestable_block_element with_location list list
  3. | `Math_block of string
  4. | `Modules of string with_location list
  5. | `Paragraph of inline_element with_location list
  6. | `Verbatim of string
]
type internal_tag = [
  1. | `Canonical of string with_location
  2. | `Closed
  3. | `Inline
  4. | `Open
]
type ocamldoc_tag = [
  1. | `Author of string
  2. | `Before of string * nestable_block_element with_location list
  3. | `Deprecated of nestable_block_element with_location list
  4. | `Param of string * nestable_block_element with_location list
  5. | `Raise of string * nestable_block_element with_location list
  6. | `Return of nestable_block_element with_location list
  7. | `See of [ `Document | `File | `Url ] * string * nestable_block_element with_location list
  8. | `Since of string
  9. | `Version of string
]
type tag = [
  1. | `Author of string
  2. | `Before of string * nestable_block_element with_location list
  3. | `Canonical of string with_location
  4. | `Closed
  5. | `Deprecated of nestable_block_element with_location list
  6. | `Inline
  7. | `Open
  8. | `Param of string * nestable_block_element with_location list
  9. | `Raise of string * nestable_block_element with_location list
  10. | `Return of nestable_block_element with_location list
  11. | `See of [ `Document | `File | `Url ] * string * nestable_block_element with_location list
  12. | `Since of string
  13. | `Version of string
]
type heading = int * string option * inline_element with_location list
type block_element = [
  1. | `Code_block of (string with_location * string with_location option) option * string with_location
  2. | `Heading of heading
  3. | `List of [ `Ordered | `Unordered ] * [ `Heavy | `Light ] * nestable_block_element with_location list list
  4. | `Math_block of string
  5. | `Modules of string with_location list
  6. | `Paragraph of inline_element with_location list
  7. | `Tag of tag
  8. | `Verbatim of string
]