Rename root AST JSON node to SourceUnit

This commit is contained in:
Alex Sinyagin
2016-08-18 15:38:20 +00:00
parent 4387d8bbe3
commit 4b9eb299d0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ bool ASTJsonConverter::visit(SourceUnit const&)
{
Json::Value children(Json::arrayValue);
m_astJson["name"] = "root";
m_astJson["name"] = "SourceUnit";
m_astJson["children"] = children;
m_jsonNodePtrs.push(&m_astJson["children"]);