aboutsummaryrefslogtreecommitdiffstats
path: root/ASTJsonConverter.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-14 08:22:44 +0800
committerChristian <c@ethdev.com>2015-02-17 02:25:24 +0800
commitf7ba85e0ecb6f690d62bcf66e0f0525f2ed97337 (patch)
treebbd2b50913748f78b311b6cbea27bb6ba5ec9c9e /ASTJsonConverter.cpp
parent3e29ec2cb2075fc6734a0f350503c393fbeeb3d6 (diff)
downloaddexon-solidity-f7ba85e0ecb6f690d62bcf66e0f0525f2ed97337.tar.gz
dexon-solidity-f7ba85e0ecb6f690d62bcf66e0f0525f2ed97337.tar.zst
dexon-solidity-f7ba85e0ecb6f690d62bcf66e0f0525f2ed97337.zip
No write access to parameters of external functions.
Diffstat (limited to 'ASTJsonConverter.cpp')
-rw-r--r--ASTJsonConverter.cpp17
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;
}