Files
mdtex-compiler/include/ast/InlineNode/Text.h
T
2026-05-17 16:30:49 +03:00

16 lines
393 B
C++

#pragma once
#include "ast/InlineNode/InlineNode.h"
#include "utils/shorten.hpp"
struct Text : public InlineNode {
std::string text;
NodeKind getKind() const override {
return NodeKind::Text;
}
void repr(std::ostream &os, int indent) const override {
os << getIndent(indent) << toString(this->getKind()) << " text: " << shorten(this->text) << '\n';
}
};