diff options
Diffstat (limited to 'ASTJsonConverter.cpp')
-rw-r--r-- | ASTJsonConverter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ASTJsonConverter.cpp b/ASTJsonConverter.cpp index 04ddee0a..d9332990 100644 --- a/ASTJsonConverter.cpp +++ b/ASTJsonConverter.cpp @@ -118,9 +118,10 @@ 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>(_node.isLocalVariable()))}, + make_pair("local", boost::lexical_cast<std::string>(isLocalVariable))}, true); return true; } |