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