From 941c77c8fadd6195809cd2d572feb64478c4fb20 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 22 Jan 2015 01:02:38 +0100 Subject: Type resolution for function modifiers. --- ASTJsonConverter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ASTJsonConverter.cpp') 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(_node.isLocalVariable()))}, + make_pair("local", boost::lexical_cast(isLocalVariable))}, true); return true; } -- cgit