solidity/test/libsolidity/ASTJSON/two_base_functions.json

276 lines
6.0 KiB
JSON
Raw Normal View History

2019-12-05 02:29:56 +00:00
{
"absolutePath": "a",
"exportedSymbols":
{
"A":
[
5
],
"B":
[
10
],
"C":
[
22
2019-12-05 02:29:56 +00:00
]
},
"id": 23,
2019-12-05 02:29:56 +00:00
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
2021-09-28 09:05:52 +00:00
"canonicalName": "A",
2019-12-05 02:29:56 +00:00
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 5,
"linearizedBaseContracts":
[
5
],
"name": "A",
2021-02-10 17:40:05 +00:00
"nameLocation": "9:1:1",
2019-12-05 02:29:56 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
"body":
{
"id": 3,
"nodeType": "Block",
"src": "45:2:1",
"statements": []
},
"functionSelector": "26121ff0",
2019-12-05 02:29:56 +00:00
"id": 4,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "f",
2021-02-10 17:40:05 +00:00
"nameLocation": "26:1:1",
2019-12-05 02:29:56 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 1,
"nodeType": "ParameterList",
"parameters": [],
"src": "27:2:1"
},
"returnParameters":
{
"id": 2,
"nodeType": "ParameterList",
"parameters": [],
"src": "45:0:1"
},
"scope": 5,
"src": "17:30:1",
"stateMutability": "nonpayable",
"virtual": true,
2019-12-05 02:29:56 +00:00
"visibility": "public"
}
],
"scope": 23,
2021-04-15 07:59:59 +00:00
"src": "0:49:1",
"usedErrors": [],
"usedEvents": []
2019-12-05 02:29:56 +00:00
},
{
"abstract": false,
"baseContracts": [],
2021-09-28 09:05:52 +00:00
"canonicalName": "B",
2019-12-05 02:29:56 +00:00
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 10,
"linearizedBaseContracts":
[
10
],
"name": "B",
2021-02-10 17:40:05 +00:00
"nameLocation": "59:1:1",
2019-12-05 02:29:56 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
"body":
{
"id": 8,
"nodeType": "Block",
"src": "95:2:1",
"statements": []
},
"functionSelector": "26121ff0",
2019-12-05 02:29:56 +00:00
"id": 9,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "f",
2021-02-10 17:40:05 +00:00
"nameLocation": "76:1:1",
2019-12-05 02:29:56 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 6,
"nodeType": "ParameterList",
"parameters": [],
"src": "77:2:1"
},
"returnParameters":
{
"id": 7,
"nodeType": "ParameterList",
"parameters": [],
"src": "95:0:1"
},
"scope": 10,
"src": "67:30:1",
"stateMutability": "nonpayable",
"virtual": true,
2019-12-05 02:29:56 +00:00
"visibility": "public"
}
],
"scope": 23,
2021-04-15 07:59:59 +00:00
"src": "50:49:1",
"usedErrors": [],
"usedEvents": []
2019-12-05 02:29:56 +00:00
},
{
"abstract": false,
"baseContracts":
[
{
"baseName":
{
"id": 11,
"name": "A",
"nameLocations":
[
"114:1:1"
],
"nodeType": "IdentifierPath",
2019-12-05 02:29:56 +00:00
"referencedDeclaration": 5,
"src": "114:1:1"
2019-12-05 02:29:56 +00:00
},
"id": 12,
2019-12-05 02:29:56 +00:00
"nodeType": "InheritanceSpecifier",
"src": "114:1:1"
},
{
"baseName":
{
"id": 13,
"name": "B",
"nameLocations":
[
"117:1:1"
],
"nodeType": "IdentifierPath",
2019-12-05 02:29:56 +00:00
"referencedDeclaration": 10,
"src": "117:1:1"
2019-12-05 02:29:56 +00:00
},
"id": 14,
2019-12-05 02:29:56 +00:00
"nodeType": "InheritanceSpecifier",
"src": "117:1:1"
}
],
2021-09-28 09:05:52 +00:00
"canonicalName": "C",
"contractDependencies": [],
2019-12-05 02:29:56 +00:00
"contractKind": "contract",
"fullyImplemented": true,
"id": 22,
2019-12-05 02:29:56 +00:00
"linearizedBaseContracts":
[
22,
2019-12-05 02:29:56 +00:00
10,
5
],
"name": "C",
2021-02-10 17:40:05 +00:00
"nameLocation": "109:1:1",
2019-12-05 02:29:56 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
"baseFunctions":
[
4,
9
],
"body":
{
"id": 20,
2019-12-05 02:29:56 +00:00
"nodeType": "Block",
"src": "160:2:1",
"statements": []
},
"functionSelector": "26121ff0",
"id": 21,
2019-12-05 02:29:56 +00:00
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "f",
2021-02-10 17:40:05 +00:00
"nameLocation": "134:1:1",
2019-12-05 02:29:56 +00:00
"nodeType": "FunctionDefinition",
"overrides":
{
"id": 18,
"nodeType": "OverrideSpecifier",
"overrides":
[
2019-12-05 02:29:56 +00:00
{
"id": 16,
"name": "A",
"nameLocations":
[
"154:1:1"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 5,
"src": "154:1:1"
},
2019-12-05 02:29:56 +00:00
{
"id": 17,
"name": "B",
"nameLocations":
[
"157:1:1"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 10,
"src": "157:1:1"
2019-12-05 02:29:56 +00:00
}
],
"src": "145:14:1"
},
2019-12-05 02:29:56 +00:00
"parameters":
{
"id": 15,
2019-12-05 02:29:56 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "135:2:1"
},
"returnParameters":
{
"id": 19,
2019-12-05 02:29:56 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "160:0:1"
},
"scope": 22,
2019-12-05 02:29:56 +00:00
"src": "125:37:1",
"stateMutability": "nonpayable",
"virtual": false,
2019-12-05 02:29:56 +00:00
"visibility": "public"
}
],
"scope": 23,
2021-04-15 07:59:59 +00:00
"src": "100:64:1",
"usedErrors": [],
"usedEvents": []
2019-12-05 02:29:56 +00:00
}
],
"src": "0:165:1"
}