aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-10-09 08:25:08 +0800
committerGitHub <noreply@github.com>2018-10-09 08:25:08 +0800
commit4ab2e03be3e5550a68a2fcf1608cdcb942dd8957 (patch)
tree7b55959fddefaa445c87d7b7335f18651f18384e
parent7ff9a27979a53a0b844db2dda12a54ee4a68cf5e (diff)
parent2fcbe74db00d12dce7133e39fd92b9d0a3b33ef4 (diff)
downloaddexon-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.rst4
-rw-r--r--test/libsolidity/ASTJSON/address_payable.json2
-rw-r--r--test/libsolidity/ASTJSON/address_payable_legacy.json1
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