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