class compilerDoc::DocTypeRenderer
sys::Obj compilerDoc::DocRenderer compilerDoc::DocTypeRenderer
Renders DocType documents
Overview
<h1>
<span>{type.flags}</span> {type.qname}
</h1>
<pre>...</pre> // inhertiance
<p class='facets'>...</p> // facet list (if available)
<p class='src'><a>...</a></p> // source link (if available)
... // type fandoc
<ul>...</ul> // emum list (if available)
Slots
<dl>
<dt id='{slot.name}'>{slot.name}</dt>
<dd>
<p class='sig'><code>...</code></p> // slot signature
<p class='src'><a>...</a></p> // source link (if available)
... // slot fandoc
</dd>
</dl>
Table of Contents
<h3>Source</h3>
<ul><li><a>...</a></li></ul> // if source link
<ul><li>Not available</li></ul> // if no source link
<h3>Slots</h3>
<ul>
<li><a href='#{slot.name}'>{slot.name}</a></li>
</ul>
- make
-
new make(DocEnv env, WebOutStream out, DocType doc)Constructor with env, out params.
- toSrcLink
-
DocLink? toSrcLink(DocLoc loc, Str dis)Map filename/line number to a source file link
- type
-
const DocType typeType to renderer
- writeContent
-
virtual override Void writeContent() - writeFacet
-
virtual Void writeFacet(DocFacet f)Write the given facet.
- writeSlot
-
virtual Void writeSlot(DocSlot slot)Render the HTML for all the given slot
- writeSlotSig
-
virtual Void writeSlotSig(DocSlot slot)Render HTML for slot signature.
- writeSlots
-
virtual Void writeSlots()Render the HTML for all the slot definitions
- writeSrcLink
-
virtual Void writeSrcLink(DocLoc loc, Str dis := "Source")Write source code link as <p> if source is available.
- writeToc
-
virtual Void writeToc()Render the table of contents for this type.
- writeTypeInheritance
-
virtual Void writeTypeInheritance()Render type inheritance.
- writeTypeOverview
-
virtual Void writeTypeOverview()Render the HTML for the type overview (base, mixins, type doc)
- writeTypeRef
-
virtual Void writeTypeRef(DocTypeRef ref, Bool full := false)Write the given type ref as a hyperlink