aboutsummaryrefslogtreecommitdiffstats
path: root/ASTJsonConverter.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-22 08:02:38 +0800
committerChristian <c@ethdev.com>2015-01-26 17:23:39 +0800
commit941c77c8fadd6195809cd2d572feb64478c4fb20 (patch)
treea4de3710aff5f3f2d9423565fd0e9ecc8708b5bf /ASTJsonConverter.cpp
parent19793dab093ae36b5f2b4d1cabfbf54bed3125b1 (diff)
downloaddexon-solidity-941c77c8fadd6195809cd2d572feb64478c4fb20.tar.gz
dexon-solidity-941c77c8fadd6195809cd2d572feb64478c4fb20.tar.zst
dexon-solidity-941c77c8fadd6195809cd2d572feb64478c4fb20.zip
Type resolution for function modifiers.
Diffstat (limited to 'ASTJsonConverter.cpp')
-rw-r--r--ASTJsonConverter.cpp3
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;
}