diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-07 21:49:05 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-09-11 20:47:25 +0800 |
commit | 395ab9a872bd8fafc0da7ec166176715ce18eae9 (patch) | |
tree | ee8fea8f180df6599cf9ecb9ee581cbcafceed5d /libsolidity/ast/ASTJsonConverter.cpp | |
parent | 7d5c13981623f5f931444d227b163d9b0d995fd8 (diff) | |
download | dexon-solidity-395ab9a872bd8fafc0da7ec166176715ce18eae9.tar.gz dexon-solidity-395ab9a872bd8fafc0da7ec166176715ce18eae9.tar.zst dexon-solidity-395ab9a872bd8fafc0da7ec166176715ce18eae9.zip |
Replace ``isConstructor`` field in the JSON AST by a ``kind`` field.
Diffstat (limited to 'libsolidity/ast/ASTJsonConverter.cpp')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp index beab356c..56a7ed06 100644 --- a/libsolidity/ast/ASTJsonConverter.cpp +++ b/libsolidity/ast/ASTJsonConverter.cpp @@ -325,11 +325,11 @@ bool ASTJsonConverter::visit(FunctionDefinition const& _node) std::vector<pair<string, Json::Value>> attributes = { make_pair("name", _node.name()), make_pair("documentation", _node.documentation() ? Json::Value(*_node.documentation()) : Json::nullValue), + make_pair("kind", _node.isConstructor() ? "constructor" : (_node.isFallback() ? "fallback" : "function")), make_pair("stateMutability", stateMutabilityToString(_node.stateMutability())), make_pair("superFunction", idOrNull(_node.annotation().superFunction)), make_pair("visibility", Declaration::visibilityToString(_node.visibility())), make_pair("parameters", toJson(_node.parameterList())), - make_pair("isConstructor", _node.isConstructor()), make_pair("returnParameters", toJson(*_node.returnParameterList())), make_pair("modifiers", toJson(_node.modifiers())), make_pair("body", _node.isImplemented() ? toJson(_node.body()) : Json::nullValue), |