11 lines
350 B
C++
11 lines
350 B
C++
#include "ast/BlockNode/CodeBlock.h"
|
|
|
|
namespace ast {
|
|
NodeKind CodeBlock::getKind() const {
|
|
return NodeKind::CodeBlock;
|
|
}
|
|
|
|
void CodeBlock::repr(std::ostream &os, int indent = 0) const {
|
|
os << getIndent(indent) << toString(this->getKind()) << " lang: " << this->language << " code: " << shorten(this->code) << '\n';
|
|
}
|
|
} |