solidity/test/libsolidity/ASTJSON/override_parseOnly.json

278 lines
6.4 KiB
JSON
Raw Normal View History

2020-07-08 20:08:50 +00:00
{
"absolutePath": "a",
"id": 30,
2020-07-08 20:08:50 +00:00
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"id": 5,
"name": "A",
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": "44:2:1",
2020-07-08 20:08:50 +00:00
"statements": []
},
"id": 4,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "faa",
2021-02-10 17:40:05 +00:00
"nameLocation": "23:3:1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 1,
"nodeType": "ParameterList",
"parameters": [],
"src": "26:2:1"
},
"returnParameters":
{
"id": 2,
"nodeType": "ParameterList",
"parameters": [],
"src": "44:0:1"
2020-07-08 20:08:50 +00:00
},
"src": "14:32:1",
2020-07-08 20:08:50 +00:00
"stateMutability": "nonpayable",
"virtual": true,
2020-07-08 20:08:50 +00:00
"visibility": "public"
}
],
2021-04-15 07:59:59 +00:00
"src": "0:48:1",
"usedErrors": [],
"usedEvents": []
2020-07-08 20:08:50 +00:00
},
{
"abstract": true,
2020-07-08 20:08:50 +00:00
"baseContracts":
[
{
"baseName":
{
"id": 6,
"name": "A",
"nameLocations":
[
"72:1:1"
],
"nodeType": "IdentifierPath",
"src": "72:1:1"
2020-07-08 20:08:50 +00:00
},
"id": 7,
"nodeType": "InheritanceSpecifier",
"src": "72:1:1"
2020-07-08 20:08:50 +00:00
}
],
"contractDependencies": [],
"contractKind": "contract",
"id": 16,
"name": "B",
"nameLocation": "67:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
"id": 10,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "foo",
"nameLocation": "86:3:1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 8,
"nodeType": "ParameterList",
"parameters": [],
"src": "89:2:1"
2020-07-08 20:08:50 +00:00
},
"returnParameters":
{
"id": 9,
"nodeType": "ParameterList",
"parameters": [],
"src": "106:0:1"
2020-07-08 20:08:50 +00:00
},
"src": "77:30:1",
2020-07-08 20:08:50 +00:00
"stateMutability": "nonpayable",
"virtual": true,
2020-07-08 20:08:50 +00:00
"visibility": "public"
},
{
"body":
{
"id": 14,
"nodeType": "Block",
"src": "148:2:1",
2020-07-08 20:08:50 +00:00
"statements": []
},
"id": 15,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "faa",
"nameLocation": "118:3:1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"overrides":
{
"id": 12,
"nodeType": "OverrideSpecifier",
"overrides": [],
"src": "139:8:1"
2020-07-08 20:08:50 +00:00
},
"parameters":
{
"id": 11,
"nodeType": "ParameterList",
"parameters": [],
"src": "121:2:1"
2020-07-08 20:08:50 +00:00
},
"returnParameters":
{
"id": 13,
"nodeType": "ParameterList",
"parameters": [],
"src": "148:0:1"
2020-07-08 20:08:50 +00:00
},
"src": "109:41:1",
2020-07-08 20:08:50 +00:00
"stateMutability": "nonpayable",
"virtual": true,
2020-07-08 20:08:50 +00:00
"visibility": "public"
}
],
2021-04-15 07:59:59 +00:00
"src": "49:103:1",
"usedErrors": [],
"usedEvents": []
2020-07-08 20:08:50 +00:00
},
{
"abstract": false,
"baseContracts":
[
{
"baseName":
{
"id": 17,
"name": "B",
"nameLocations":
[
"167:1:1"
],
"nodeType": "IdentifierPath",
"src": "167:1:1"
2020-07-08 20:08:50 +00:00
},
"id": 18,
"nodeType": "InheritanceSpecifier",
"src": "167:1:1"
2020-07-08 20:08:50 +00:00
}
],
"contractDependencies": [],
"contractKind": "contract",
"id": 29,
2020-07-08 20:08:50 +00:00
"name": "C",
"nameLocation": "162:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
"body":
{
"id": 22,
"nodeType": "Block",
"src": "203:3:1",
2020-07-08 20:08:50 +00:00
"statements": []
},
"id": 23,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "foo",
"nameLocation": "181:3:1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"overrides":
{
"id": 20,
"nodeType": "OverrideSpecifier",
"overrides": [],
"src": "194:8:1"
2020-07-08 20:08:50 +00:00
},
"parameters":
{
"id": 19,
"nodeType": "ParameterList",
"parameters": [],
"src": "184:2:1"
2020-07-08 20:08:50 +00:00
},
"returnParameters":
{
"id": 21,
"nodeType": "ParameterList",
"parameters": [],
"src": "203:0:1"
2020-07-08 20:08:50 +00:00
},
"src": "172:34:1",
2020-07-08 20:08:50 +00:00
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body":
{
"id": 27,
2020-07-08 20:08:50 +00:00
"nodeType": "Block",
"src": "239:3:1",
2020-07-08 20:08:50 +00:00
"statements": []
},
"id": 28,
2020-07-08 20:08:50 +00:00
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "faa",
"nameLocation": "217:3:1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"overrides":
{
"id": 25,
2020-07-08 20:08:50 +00:00
"nodeType": "OverrideSpecifier",
"overrides": [],
"src": "230:8:1"
2020-07-08 20:08:50 +00:00
},
"parameters":
{
"id": 24,
"nodeType": "ParameterList",
"parameters": [],
"src": "220:2:1"
2020-07-08 20:08:50 +00:00
},
"returnParameters":
{
"id": 26,
2020-07-08 20:08:50 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "239:0:1"
2020-07-08 20:08:50 +00:00
},
"src": "208:34:1",
2020-07-08 20:08:50 +00:00
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
}
],
2021-04-15 07:59:59 +00:00
"src": "153:91:1",
"usedErrors": [],
"usedEvents": []
2020-07-08 20:08:50 +00:00
}
],
"src": "0:245:1"
2020-07-08 20:08:50 +00:00
}