diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-10-09 08:25:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 08:25:08 +0800 |
commit | 4ab2e03be3e5550a68a2fcf1608cdcb942dd8957 (patch) | |
tree | 7b55959fddefaa445c87d7b7335f18651f18384e | |
parent | 7ff9a27979a53a0b844db2dda12a54ee4a68cf5e (diff) | |
parent | 2fcbe74db00d12dce7133e39fd92b9d0a3b33ef4 (diff) | |
download | dexon-solidity-4ab2e03be3e5550a68a2fcf1608cdcb942dd8957.tar.gz dexon-solidity-4ab2e03be3e5550a68a2fcf1608cdcb942dd8957.tar.zst dexon-solidity-4ab2e03be3e5550a68a2fcf1608cdcb942dd8957.zip |
Merge pull request #5172 from ethereum/fixKind
Fix kind
-rw-r--r-- | docs/050-breaking-changes.rst | 4 | ||||
-rw-r--r-- | test/libsolidity/ASTJSON/address_payable.json | 2 | ||||
-rw-r--r-- | test/libsolidity/ASTJSON/address_payable_legacy.json | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/docs/050-breaking-changes.rst b/docs/050-breaking-changes.rst index 9094000e..93f099ca 100644 --- a/docs/050-breaking-changes.rst +++ b/docs/050-breaking-changes.rst @@ -154,6 +154,10 @@ Command Line and JSON Interfaces * The JSON AST fields ``constant`` and ``payable`` were removed. The information is now present in the ``stateMutability`` field. +* The JSON AST field ``isConstructor`` of the ``FunctionDefinition`` + node was replaced by a field called ``kind`` which can have the + value ``"constructor"``, ``"fallback"`` or ``"function"``. + Constructors ------------ diff --git a/test/libsolidity/ASTJSON/address_payable.json b/test/libsolidity/ASTJSON/address_payable.json index 42ad33e5..0f30e8e8 100644 --- a/test/libsolidity/ASTJSON/address_payable.json +++ b/test/libsolidity/ASTJSON/address_payable.json @@ -463,7 +463,7 @@ "documentation" : null, "id" : 36, "implemented" : true, - "isConstructor" : false, + "kind" : "function", "modifiers" : [], "name" : "f", "nodeType" : "FunctionDefinition", diff --git a/test/libsolidity/ASTJSON/address_payable_legacy.json b/test/libsolidity/ASTJSON/address_payable_legacy.json index 11a634c3..dd8a5582 100644 --- a/test/libsolidity/ASTJSON/address_payable_legacy.json +++ b/test/libsolidity/ASTJSON/address_payable_legacy.json @@ -93,6 +93,7 @@ "documentation" : null, "implemented" : true, "isConstructor" : false, + "kind" : "function", "modifiers" : [ null |