diff options
author | chriseth <chris@ethereum.org> | 2018-10-09 03:47:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 03:47:27 +0800 |
commit | 7ff9a27979a53a0b844db2dda12a54ee4a68cf5e (patch) | |
tree | 5bdb5c3e251f920deec86362b707a7a3702c21e1 /test/libsolidity/ASTJSON/constructor.json | |
parent | 7d2dc14304e2ce1805069eef57904805ed6b96eb (diff) | |
parent | a434896458656249113c7e269d8fde64b3df5d69 (diff) | |
download | dexon-solidity-7ff9a27979a53a0b844db2dda12a54ee4a68cf5e.tar dexon-solidity-7ff9a27979a53a0b844db2dda12a54ee4a68cf5e.tar.gz dexon-solidity-7ff9a27979a53a0b844db2dda12a54ee4a68cf5e.tar.bz2 dexon-solidity-7ff9a27979a53a0b844db2dda12a54ee4a68cf5e.tar.lz dexon-solidity-7ff9a27979a53a0b844db2dda12a54ee4a68cf5e.tar.xz dexon-solidity-7ff9a27979a53a0b844db2dda12a54ee4a68cf5e.tar.zst dexon-solidity-7ff9a27979a53a0b844db2dda12a54ee4a68cf5e.zip |
Merge pull request #4734 from ethereum/astUpdate
JSON AST: replace ``isConstructor`` by ``kind`` which also supports fallbacks
Diffstat (limited to 'test/libsolidity/ASTJSON/constructor.json')
-rw-r--r-- | test/libsolidity/ASTJSON/constructor.json | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/test/libsolidity/ASTJSON/constructor.json b/test/libsolidity/ASTJSON/constructor.json new file mode 100644 index 00000000..b0bc4201 --- /dev/null +++ b/test/libsolidity/ASTJSON/constructor.json @@ -0,0 +1,70 @@ +{ + "absolutePath" : "a", + "exportedSymbols" : + { + "C" : + [ + 5 + ] + }, + "id" : 6, + "nodeType" : "SourceUnit", + "nodes" : + [ + { + "baseContracts" : [], + "contractDependencies" : [], + "contractKind" : "contract", + "documentation" : null, + "fullyImplemented" : true, + "id" : 5, + "linearizedBaseContracts" : + [ + 5 + ], + "name" : "C", + "nodeType" : "ContractDefinition", + "nodes" : + [ + { + "body" : + { + "id" : 3, + "nodeType" : "Block", + "src" : "35:4:1", + "statements" : [] + }, + "documentation" : null, + "id" : 4, + "implemented" : true, + "kind" : "constructor", + "modifiers" : [], + "name" : "", + "nodeType" : "FunctionDefinition", + "parameters" : + { + "id" : 1, + "nodeType" : "ParameterList", + "parameters" : [], + "src" : "25:2:1" + }, + "returnParameters" : + { + "id" : 2, + "nodeType" : "ParameterList", + "parameters" : [], + "src" : "35:0:1" + }, + "scope" : 5, + "src" : "14:25:1", + "stateMutability" : "nonpayable", + "superFunction" : null, + "visibility" : "public" + } + ], + "scope" : 6, + "src" : "0:41:1" + } + ], + "src" : "0:42:1" +} |