![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Builds IR (Intermediate Representation) from QDoc's Node tree. More...
#include <builder.h>
Public Member Functions | |
| Builder ()=default | |
| Document | buildPageIR (const PageNode *pn) const |
Builds IR (Intermediate Representation) from QDoc's Node tree.
Builder is the "compiler" in QDoc's compile/link/render pipeline. It transforms Node objects into format-agnostic IR structures that can be:
\list
Builder handles all interaction with Node classes and Atom chains. Generators receive pre-built IR and focus purely on formatting output. This separation enables:
\list
During IR building, {local links} (within the same module) are resolved immediately. {Cross-module links} are marked as external with an empty href, to be resolved during the link phase when dependency .index files are available.
|
default |
This method extracts documentation content from the node's atom chain. The brief is stored separately via Doc::briefText(), while body content is extracted by walking the atom chain and collecting text atoms that are not within the brief section.
Definition at line 66 of file builder.cpp.
References IR::Document::access, Node< _Tp >::access(), Atom::AutoLink, Atom::BriefLeft, Atom::BriefRight, Atom::C, Node< _Tp >::doc(), Text::firstAtom(), IR::Document::genus, Node< _Tp >::genus(), Atom::next(), IR::Document::nodeType, Node< _Tp >::nodeType(), IR::Document::status, Node< _Tp >::status(), Atom::String, and Atom::type().
Referenced by TemplateGenerator::generatePageNode().