solidity/test/libsolidity/ASTJSON/two_base_functions_legacy.json

423 lines
9.3 KiB
JSON
Raw Normal View History

2019-12-05 02:29:56 +00:00
{
"attributes":
{
"absolutePath": "a",
"exportedSymbols":
{
"A":
[
5
],
"B":
[
10
],
"C":
[
2020-08-31 15:37:03 +00:00
26
2019-12-05 02:29:56 +00:00
]
2020-04-27 08:28:54 +00:00
}
2019-12-05 02:29:56 +00:00
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
5
],
"name": "A",
2020-08-31 15:37:03 +00:00
"scope": 27
2019-12-05 02:29:56 +00:00
},
"children":
[
{
"attributes":
{
"functionSelector": "26121ff0",
2019-12-05 02:29:56 +00:00
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers":
[
null
],
"name": "f",
"scope": 5,
"stateMutability": "nonpayable",
"virtual": true,
2019-12-05 02:29:56 +00:00
"visibility": "public"
},
"children":
[
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 1,
"name": "ParameterList",
"src": "27:2:1"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 2,
"name": "ParameterList",
"src": "45:0:1"
},
{
"attributes":
{
"statements":
[
null
]
},
"children": [],
"id": 3,
"name": "Block",
"src": "45:2:1"
}
],
"id": 4,
"name": "FunctionDefinition",
"src": "17:30:1"
}
],
"id": 5,
"name": "ContractDefinition",
"src": "0:49:1"
},
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
10
],
"name": "B",
2020-08-31 15:37:03 +00:00
"scope": 27
2019-12-05 02:29:56 +00:00
},
"children":
[
{
"attributes":
{
"functionSelector": "26121ff0",
2019-12-05 02:29:56 +00:00
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers":
[
null
],
"name": "f",
"scope": 10,
"stateMutability": "nonpayable",
"virtual": true,
2019-12-05 02:29:56 +00:00
"visibility": "public"
},
"children":
[
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 6,
"name": "ParameterList",
"src": "77:2:1"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 7,
"name": "ParameterList",
"src": "95:0:1"
},
{
"attributes":
{
"statements":
[
null
]
},
"children": [],
"id": 8,
"name": "Block",
"src": "95:2:1"
}
],
"id": 9,
"name": "FunctionDefinition",
"src": "67:30:1"
}
],
"id": 10,
"name": "ContractDefinition",
"src": "50:49:1"
},
{
"attributes":
{
"abstract": false,
"contractDependencies":
[
5,
10
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
2020-08-31 15:37:03 +00:00
26,
2019-12-05 02:29:56 +00:00
10,
5
],
"name": "C",
2020-08-31 15:37:03 +00:00
"scope": 27
2019-12-05 02:29:56 +00:00
},
"children":
[
{
2020-04-27 08:28:54 +00:00
"attributes": {},
2019-12-05 02:29:56 +00:00
"children":
[
{
"attributes":
{
"referencedDeclaration": 5,
"type": "contract A"
},
2020-08-31 15:37:03 +00:00
"children":
[
{
"attributes":
{
"name": "A",
"referencedDeclaration": 5
},
"id": 11,
"name": "IdentifierPath",
"src": "114:1:1"
}
],
"id": 12,
2019-12-05 02:29:56 +00:00
"name": "UserDefinedTypeName",
"src": "114:1:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 13,
2019-12-05 02:29:56 +00:00
"name": "InheritanceSpecifier",
"src": "114:1:1"
},
{
2020-04-27 08:28:54 +00:00
"attributes": {},
2019-12-05 02:29:56 +00:00
"children":
[
{
"attributes":
{
"referencedDeclaration": 10,
"type": "contract B"
},
2020-08-31 15:37:03 +00:00
"children":
[
{
"attributes":
{
"name": "B",
"referencedDeclaration": 10
},
"id": 14,
"name": "IdentifierPath",
"src": "117:1:1"
}
],
"id": 15,
2019-12-05 02:29:56 +00:00
"name": "UserDefinedTypeName",
"src": "117:1:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 16,
2019-12-05 02:29:56 +00:00
"name": "InheritanceSpecifier",
"src": "117:1:1"
},
{
"attributes":
{
"baseFunctions":
[
4,
9
],
"functionSelector": "26121ff0",
2019-12-05 02:29:56 +00:00
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers":
[
null
],
"name": "f",
2020-08-31 15:37:03 +00:00
"scope": 26,
2019-12-05 02:29:56 +00:00
"stateMutability": "nonpayable",
"virtual": false,
2019-12-05 02:29:56 +00:00
"visibility": "public"
},
"children":
[
{
"children":
[
{
"attributes":
{
"referencedDeclaration": 5,
"type": "contract A"
},
2020-08-31 15:37:03 +00:00
"children":
[
{
"attributes":
{
"name": "A",
"referencedDeclaration": 5
},
"id": 18,
"name": "IdentifierPath",
"src": "154:1:1"
}
],
"id": 19,
"name": "UserDefinedTypeName",
"src": "154:1:1"
},
{
"attributes":
{
"referencedDeclaration": 10,
"type": "contract B"
},
2020-08-31 15:37:03 +00:00
"children":
[
{
"attributes":
{
"name": "B",
"referencedDeclaration": 10
},
"id": 20,
"name": "IdentifierPath",
"src": "157:1:1"
}
],
"id": 21,
"name": "UserDefinedTypeName",
"src": "157:1:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 22,
"name": "OverrideSpecifier",
"src": "145:14:1"
2019-12-05 02:29:56 +00:00
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
2020-08-31 15:37:03 +00:00
"id": 17,
2019-12-05 02:29:56 +00:00
"name": "ParameterList",
"src": "135:2:1"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
2020-08-31 15:37:03 +00:00
"id": 23,
2019-12-05 02:29:56 +00:00
"name": "ParameterList",
"src": "160:0:1"
},
{
"attributes":
{
"statements":
[
null
]
},
"children": [],
2020-08-31 15:37:03 +00:00
"id": 24,
2019-12-05 02:29:56 +00:00
"name": "Block",
"src": "160:2:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 25,
2019-12-05 02:29:56 +00:00
"name": "FunctionDefinition",
"src": "125:37:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 26,
2019-12-05 02:29:56 +00:00
"name": "ContractDefinition",
"src": "100:64:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 27,
2019-12-05 02:29:56 +00:00
"name": "SourceUnit",
"src": "0:165:1"
}