#pragma once #include "ast/BlockNode/BlockNode.h" #include "ast/InlineNode/InlineNode.h" struct Header : public BlockNode { int level = 1; std::vector> children; NodeKind getKind() const override { return NodeKind::Header; } void repr(std::ostream &os, int indent = 0) const override { os << getIndent(indent) << toString(this->getKind()) << " level: " << this->level << '\n'; for (const std::unique_ptr &child : this->children) { child->repr(os, indent + 1); } } };