clang-tools 23.0.0git
clang::doc::markdown::ListItemNode Class Reference

A single item in an unordered or ordered list. More...

#include <Markdown.h>

Inheritance diagram for clang::doc::markdown::ListItemNode:
[legend]

Public Member Functions

 ListItemNode ()=default
void addChild (InlineNode &N)
void removeChild (InlineNode &N)
InlineListchildren ()
const InlineListchildren () const
void print (llvm::raw_ostream &OS) const
LLVM_DUMP_METHOD void dump () const
 Prints to llvm::errs().

Detailed Description

A single item in an unordered or ordered list.

ListItemNode is not a BlockNode – it only lives inside list nodes.

Definition at line 211 of file Markdown.h.

Constructor & Destructor Documentation

◆ ListItemNode()

clang::doc::markdown::ListItemNode::ListItemNode ( )
default

Member Function Documentation

◆ addChild()

void clang::doc::markdown::ListItemNode::addChild ( InlineNode & N)
inline

Definition at line 214 of file Markdown.h.

◆ children() [1/2]

InlineList & clang::doc::markdown::ListItemNode::children ( )
inline

Definition at line 216 of file Markdown.h.

Referenced by print().

◆ children() [2/2]

const InlineList & clang::doc::markdown::ListItemNode::children ( ) const
inline

Definition at line 217 of file Markdown.h.

◆ dump()

LLVM_DUMP_METHOD void clang::doc::markdown::ListItemNode::dump ( ) const

Prints to llvm::errs().

Only available in assert builds. ListItemNode provides its own dump() since it does not inherit BlockNode.

Definition at line 68 of file Markdown.cpp.

References print().

◆ print()

void clang::doc::markdown::ListItemNode::print ( llvm::raw_ostream & OS) const

Definition at line 61 of file Markdown.cpp.

References children().

Referenced by dump().

◆ removeChild()

void clang::doc::markdown::ListItemNode::removeChild ( InlineNode & N)
inline

Definition at line 215 of file Markdown.h.


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