17 lines
366 B
C++
17 lines
366 B
C++
|
|
#include "node_impls.h"
|
||
|
|
|
||
|
|
using namespace SyntaxNode;
|
||
|
|
using namespace Ast;
|
||
|
|
|
||
|
|
Document::Document(const QString &path) : ASTList(nullptr) {}
|
||
|
|
|
||
|
|
QString Document::filePath() const { return this->path_store; }
|
||
|
|
|
||
|
|
QString Document::toString() const {
|
||
|
|
QString contents = "";
|
||
|
|
for (auto &it : children()) {
|
||
|
|
contents += it->toString();
|
||
|
|
}
|
||
|
|
return contents;
|
||
|
|
}
|