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