diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-08 03:49:14 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-09-11 20:47:25 +0800 |
commit | a434896458656249113c7e269d8fde64b3df5d69 (patch) | |
tree | 098c7ae1c84841e425e7485ff8323564ffcd44ce /libsolidity/ast | |
parent | b6636e2570a14b33fbf53c3f59cca1a9dfb7f824 (diff) | |
download | dexon-solidity-a434896458656249113c7e269d8fde64b3df5d69.tar.gz dexon-solidity-a434896458656249113c7e269d8fde64b3df5d69.tar.zst dexon-solidity-a434896458656249113c7e269d8fde64b3df5d69.zip |
Restore ``isConstructor`` in the legacy AST.
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp index 56a7ed06..5189414c 100644 --- a/libsolidity/ast/ASTJsonConverter.cpp +++ b/libsolidity/ast/ASTJsonConverter.cpp @@ -336,6 +336,8 @@ bool ASTJsonConverter::visit(FunctionDefinition const& _node) make_pair("implemented", _node.isImplemented()), make_pair("scope", idOrNull(_node.scope())) }; + if (m_legacy) + attributes.emplace_back("isConstructor", _node.isConstructor()); setJsonNode(_node, "FunctionDefinition", std::move(attributes)); return false; } |