Skip to main content

The DocParBlock Class Reference

Node representing an block of paragraphs. More...

Declaration

class DocParBlock { ... }

Included Headers

#include <src/docnode.h>

Base class

classDocCompoundNode

Base class for nodes with children. More...

Public Constructors Index

DocParBlock (DocParser *parser, DocNodeVariant *parent)

Public Member Functions Index

Tokenparse ()

Description

Node representing an block of paragraphs.

Definition at line 978 of file docnode.h.

Public Constructors

DocParBlock()

DocParBlock::DocParBlock (DocParser * parser, DocNodeVariant * parent)
inline

Public Member Functions

parse()

Token DocParBlock::parse ()

Declaration at line 982 of file docnode.h, definition at line 2816 of file docnode.cpp.

2817{
2818 AUTO_TRACE();
2819 Token retval = Token::make_TK_NONE();
2820 auto ns = AutoNodeStack(parser(),thisVariant());
2821
2822 // parse one or more paragraphs
2823 bool isFirst=TRUE;
2824 DocPara *par=nullptr;
2825 do
2826 {
2828 par = children().get_last<DocPara>();
2829 if (isFirst) { par->markFirst(); isFirst=FALSE; }
2830 retval=par->parse();
2831 }
2832 while (retval.is(TokenRetval::TK_NEWPARA));
2833 if (par) par->markLast();
2834
2835 AUTO_TRACE_EXIT("retval={}",retval.to_string());
2836 return retval.is(TokenRetval::RetVal_EndBlockQuote) ? Token::make_RetVal_OK() : retval;
2837}

References DocNodeList::append, AUTO_TRACE, AUTO_TRACE_EXIT, DocCompoundNode::children, FALSE, DocNodeList::get_last, Token::is, DocPara::markFirst, DocPara::markLast, DocPara::parse, DocNode::parser, DocNode::thisVariant, Token::to_string and TRUE.


The documentation for this class was generated from the following files:


Generated via doxygen2docusaurus by Doxygen 1.14.0.