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