solidity/test/libsolidity/ASTJSON/fallback_and_reveice_ether_parseOnly.json

93 lines
2.1 KiB
JSON
Raw Normal View History

2020-07-08 20:08:50 +00:00
{
"absolutePath": "a",
"id": 10,
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"id": 9,
"name": "C",
2021-02-10 17:40:05 +00:00
"nameLocation": "9:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
"body":
{
"id": 3,
"nodeType": "Block",
"src": "42:5:1",
"statements": []
},
"id": 4,
"implemented": true,
"kind": "receive",
"modifiers": [],
"name": "",
2021-02-10 17:40:05 +00:00
"nameLocation": "-1:-1:-1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 1,
"nodeType": "ParameterList",
"parameters": [],
"src": "22:2:1"
},
"returnParameters":
{
"id": 2,
"nodeType": "ParameterList",
"parameters": [],
"src": "42:0:1"
},
"src": "15:32:1",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"body":
{
"id": 7,
"nodeType": "Block",
"src": "78:5:1",
"statements": []
},
"id": 8,
"implemented": true,
"kind": "fallback",
"modifiers": [],
"name": "",
2021-02-10 17:40:05 +00:00
"nameLocation": "-1:-1:-1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 5,
"nodeType": "ParameterList",
"parameters": [],
"src": "58:2:1"
},
"returnParameters":
{
"id": 6,
"nodeType": "ParameterList",
"parameters": [],
"src": "78:0:1"
},
"src": "50:33:1",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
}
],
2021-04-15 07:59:59 +00:00
"src": "0:85:1",
"usedErrors": []
2020-07-08 20:08:50 +00:00
}
],
"src": "0:86:1"
}