diff options
Diffstat (limited to 'ASTJsonConverter.cpp')
-rw-r--r-- | ASTJsonConverter.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/ASTJsonConverter.cpp b/ASTJsonConverter.cpp index a216a59a..04feafe2 100644 --- a/ASTJsonConverter.cpp +++ b/ASTJsonConverter.cpp @@ -118,11 +118,7 @@ bool ASTJsonConverter::visit(FunctionDefinition const& _node) bool ASTJsonConverter::visit(VariableDeclaration const& _node) { - bool isLocalVariable = (_node.getLValueType() == VariableDeclaration::LValueType::Local); - addJsonNode("VariableDeclaration", - { make_pair("name", _node.getName()), - make_pair("local", boost::lexical_cast<std::string>(isLocalVariable))}, - true); + addJsonNode("VariableDeclaration", { make_pair("name", _node.getName()) }, true); return true; } @@ -216,11 +212,12 @@ bool ASTJsonConverter::visit(ExpressionStatement const&) bool ASTJsonConverter::visit(Expression const& _node) { - addJsonNode("Expression", - { make_pair("type", getType(_node)), - make_pair("lvalue", boost::lexical_cast<std::string>(_node.isLValue())), - make_pair("local_lvalue", boost::lexical_cast<std::string>(_node.isLocalLValue())) }, - true); + addJsonNode( + "Expression", + { make_pair("type", getType(_node)), + make_pair("lvalue", boost::lexical_cast<std::string>(_node.isLValue())) }, + true + ); return true; } |