Fix names of JSON AST nodes

This commit is contained in:
Federico Bond 2016-12-11 02:07:08 -03:00
parent 84443eb560
commit df76230240

View File

@ -318,7 +318,7 @@ bool ASTJsonConverter::visit(Throw const& _node)
bool ASTJsonConverter::visit(VariableDeclarationStatement const& _node) bool ASTJsonConverter::visit(VariableDeclarationStatement const& _node)
{ {
addJsonNode(_node, "VariableDefinitionStatement", {}, true); addJsonNode(_node, "VariableDeclarationStatement", {}, true);
return true; return true;
} }
@ -407,7 +407,7 @@ bool ASTJsonConverter::visit(Identifier const& _node)
bool ASTJsonConverter::visit(ElementaryTypeNameExpression const& _node) bool ASTJsonConverter::visit(ElementaryTypeNameExpression const& _node)
{ {
addJsonNode(_node, "ElementaryTypenameExpression", { addJsonNode(_node, "ElementaryTypeNameExpression", {
make_pair("value", _node.typeName().toString()), make_pair("value", _node.typeName().toString()),
make_pair("type", type(_node)) make_pair("type", type(_node))
}); });