forked from ocaml/ocaml
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ocaml#718 from Octachron/ocamldoc_extension_cstr_o…
…rder Ocamldoc: fix extension constructor order
- Loading branch information
Showing
5 changed files
with
135 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
(** Testing display of extensible variant types. | ||
@test_types_display | ||
*) | ||
|
||
type e = .. | ||
|
||
module M = struct | ||
type e += | ||
| A (** A doc *) | ||
| B (** B doc *) | ||
| C (** C doc *) | ||
end | ||
|
||
module type MT = sig | ||
type e += | ||
| A (** A doc *) | ||
| B (** B doc *) | ||
| C (** C doc *) | ||
end |
108 changes: 108 additions & 0 deletions
108
testsuite/tests/tool-ocamldoc-2/extensible_variant.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
\documentclass[11pt]{article} | ||
\usepackage[latin1]{inputenc} | ||
\usepackage[T1]{fontenc} | ||
\usepackage{textcomp} | ||
\usepackage{fullpage} | ||
\usepackage{url} | ||
\usepackage{ocamldoc} | ||
\begin{document} | ||
\tableofcontents | ||
\section{Module {\tt{Extensible\_variant}} : Testing display of extensible variant types.} | ||
\label{Extensible-underscorevariant}\index{Extensible-underscorevariant@\verb`Extensible_variant`} | ||
|
||
|
||
|
||
|
||
\ocamldocvspace{0.5cm} | ||
|
||
|
||
|
||
\label{TYPExtensible-underscorevariant.e}\begin{ocamldoccode} | ||
type e = .. | ||
\end{ocamldoccode} | ||
\index{e@\verb`e`} | ||
|
||
|
||
|
||
|
||
\begin{ocamldoccode} | ||
{\tt{module }}{\tt{M}}{\tt{ : }}\end{ocamldoccode} | ||
\label{Extensible-underscorevariant.M}\index{M@\verb`M`} | ||
|
||
\begin{ocamldocsigend} | ||
|
||
|
||
\begin{ocamldoccode} | ||
type e += | ||
\end{ocamldoccode} | ||
\label{extension:Extensible-underscorevariant.M.A}\begin{ocamldoccode} | ||
| A | ||
\end{ocamldoccode} | ||
\begin{ocamldoccomment} | ||
A doc | ||
|
||
|
||
\end{ocamldoccomment} | ||
\label{extension:Extensible-underscorevariant.M.B}\begin{ocamldoccode} | ||
| B | ||
\end{ocamldoccode} | ||
\begin{ocamldoccomment} | ||
B doc | ||
|
||
|
||
\end{ocamldoccomment} | ||
\label{extension:Extensible-underscorevariant.M.C}\begin{ocamldoccode} | ||
| C | ||
\end{ocamldoccode} | ||
\begin{ocamldoccomment} | ||
C doc | ||
|
||
|
||
\end{ocamldoccomment} | ||
\end{ocamldocsigend} | ||
|
||
|
||
|
||
|
||
|
||
|
||
\begin{ocamldoccode} | ||
{\tt{module type }}{\tt{MT}}{\tt{ = }}\end{ocamldoccode} | ||
\label{Extensible-underscorevariant.MT}\index{MT@\verb`MT`} | ||
|
||
\begin{ocamldocsigend} | ||
|
||
|
||
\begin{ocamldoccode} | ||
type e += | ||
\end{ocamldoccode} | ||
\label{extension:Extensible-underscorevariant.MT.A}\begin{ocamldoccode} | ||
| A | ||
\end{ocamldoccode} | ||
\begin{ocamldoccomment} | ||
A doc | ||
|
||
|
||
\end{ocamldoccomment} | ||
\label{extension:Extensible-underscorevariant.MT.B}\begin{ocamldoccode} | ||
| B | ||
\end{ocamldoccode} | ||
\begin{ocamldoccomment} | ||
B doc | ||
|
||
|
||
\end{ocamldoccomment} | ||
\label{extension:Extensible-underscorevariant.MT.C}\begin{ocamldoccode} | ||
| C | ||
\end{ocamldoccode} | ||
\begin{ocamldoccomment} | ||
C doc | ||
|
||
|
||
\end{ocamldoccomment} | ||
\end{ocamldocsigend} | ||
|
||
|
||
|
||
|
||
\end{document} |