43 int headingOffset = 0,
44 DiagnosticHandler diagnosticHandler = {});
48 void processAtoms(
const Atom *atom);
49 const Atom *skipFormatIfBlock(
const Atom *atom);
50 const Atom *dispatchAtom(
const Atom *atom);
52 void openBlock(
BlockType type, QJsonObject attrs = {});
55 void addLeafInline(
InlineType type,
const QString &text);
61 QList<ContentBlock> m_result;
67 QList<qsizetype> m_blockPath;
69 QList<qsizetype> m_inlinePath;
74 QList<qsizetype> m_inlineBaseDepths;
77 int m_headingOffset = 0;
78 bool m_inBrief =
false;
79 bool m_inLink =
false;
80 DiagnosticHandler m_diagnose;
Converts Atom chains to QList<IR::ContentBlock> trees.
QList< ContentBlock > build(const Atom *firstAtom)
Walks the atom chain starting at firstAtom and returns a list of ContentBlock trees representing the ...
ContentBuilder(BriefHandling briefHandling=BriefHandling::Skip, int headingOffset=0, DiagnosticHandler diagnosticHandler={})
Constructs a ContentBuilder.
static QString genusToString(Genus genus)
Represents a structural block element in documentation.
Represents inline content within a documentation block.