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