diff options
author | chriseth <c@ethdev.com> | 2016-10-19 22:39:16 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:18 +0800 |
commit | 62492b67e783dd19c67850e2b8ae107aeeb83217 (patch) | |
tree | b683d9145c39005201132e8fc631ef056ea3ba04 /libsolidity/ast/ASTJsonConverter.cpp | |
parent | 6172590b870832d7aa132209afb890125f301c15 (diff) | |
download | dexon-solidity-62492b67e783dd19c67850e2b8ae107aeeb83217.tar.gz dexon-solidity-62492b67e783dd19c67850e2b8ae107aeeb83217.tar.zst dexon-solidity-62492b67e783dd19c67850e2b8ae107aeeb83217.zip |
Changelog entry and small fixes.
Diffstat (limited to 'libsolidity/ast/ASTJsonConverter.cpp')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp index 717a80ee..d6aca175 100644 --- a/libsolidity/ast/ASTJsonConverter.cpp +++ b/libsolidity/ast/ASTJsonConverter.cpp @@ -228,8 +228,13 @@ bool ASTJsonConverter::visit(UserDefinedTypeName const& _node) bool ASTJsonConverter::visit(FunctionTypeName const& _node) { + string visibility = "internal"; + if (_node.visibility() == Declaration::Visibility::External) + visibility = "external"; + addJsonNode(_node, "FunctionTypeName", { make_pair("payable", _node.isPayable()), + make_pair("visibility", visibility), make_pair("constant", _node.isDeclaredConst()) }); return true; |