14 lines
393 B
C++
14 lines
393 B
C++
#include "ast/BlockNode/ListItem.h"
|
|
|
|
namespace ast {
|
|
NodeKind ListItem::getKind() const {
|
|
return NodeKind::ListItem;
|
|
}
|
|
|
|
void ListItem::repr(std::ostream &os, int indent) const {
|
|
os << getIndent(indent) << toString(getKind()) << '\n';
|
|
for (const std::unique_ptr<BlockNode> &child : this->children) {
|
|
child->repr(os, indent + 1);
|
|
}
|
|
}
|
|
} |