The DocSimpleList
Class Reference
Node representing a simple list. More...
Declaration
class DocSimpleList { ... }
Included Headers
#include <src/docnode.h>
Base class
class | DocCompoundNode |
Base class for nodes with children. More... | |
Public Constructors Index
DocSimpleList (DocParser *parser, DocNodeVariant *parent) | |
Public Member Functions Index
Token | parse () |
Description
Node representing a simple list.
Definition at line 989 of file docnode.h.
Public Constructors
DocSimpleList()
| inline |
Definition at line 992 of file docnode.h.
References DocCompoundNode::DocCompoundNode, DocNode::parent and DocNode::parser.
Public Member Functions
parse()
|
Declaration at line 993 of file docnode.h, definition at line 2860 of file docnode.cpp.
2861{
2862 auto ns = AutoNodeStack(parser(),thisVariant());
2863 Token rv = Token::make_TK_NONE();
2864 do
2865 {
2866 children().append<DocSimpleListItem>(parser(),thisVariant());
2867 DocSimpleListItem *li = children().get_last<DocSimpleListItem>();
2868 rv=li->parse();
2869 } while (rv.is(TokenRetval::RetVal_ListItem));
2870 return (!rv.is(TokenRetval::TK_NEWPARA)) ? rv : Token::make_RetVal_OK();
2871}
References DocNodeList::append, DocCompoundNode::children, DocNodeList::get_last, Token::is, DocNode::parser and DocNode::thisVariant.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.