2020-11-20 15:54:53 +00:00
|
|
|
JSON AST (compact format):
|
2019-05-28 15:24:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
======= recovery_ast_constructor/input.sol =======
|
2019-09-06 11:39:29 +00:00
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"absolutePath": "recovery_ast_constructor/input.sol",
|
|
|
|
"exportedSymbols":
|
2019-09-29 23:32:28 +00:00
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"Error1":
|
|
|
|
[
|
|
|
|
18
|
|
|
|
]
|
2019-09-29 23:32:28 +00:00
|
|
|
},
|
2020-11-20 15:54:53 +00:00
|
|
|
"id": 19,
|
|
|
|
"license": "GPL-3.0",
|
|
|
|
"nodeType": "SourceUnit",
|
|
|
|
"nodes":
|
2019-09-29 23:32:28 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": 1,
|
2020-11-20 15:54:53 +00:00
|
|
|
"literals":
|
|
|
|
[
|
|
|
|
"solidity",
|
|
|
|
">=",
|
|
|
|
"0.0",
|
|
|
|
".0"
|
|
|
|
],
|
|
|
|
"nodeType": "PragmaDirective",
|
2020-05-13 01:52:11 +00:00
|
|
|
"src": "36:24:0"
|
2019-09-29 23:32:28 +00:00
|
|
|
},
|
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"abstract": false,
|
|
|
|
"baseContracts": [],
|
2021-09-28 09:05:52 +00:00
|
|
|
"canonicalName": "Error1",
|
2020-11-20 15:54:53 +00:00
|
|
|
"contractDependencies": [],
|
|
|
|
"contractKind": "contract",
|
|
|
|
"fullyImplemented": true,
|
|
|
|
"id": 18,
|
|
|
|
"linearizedBaseContracts":
|
|
|
|
[
|
|
|
|
18
|
|
|
|
],
|
|
|
|
"name": "Error1",
|
2021-01-21 15:01:39 +00:00
|
|
|
"nameLocation": "71:6:0",
|
2020-11-20 15:54:53 +00:00
|
|
|
"nodeType": "ContractDefinition",
|
|
|
|
"nodes":
|
2019-09-29 23:32:28 +00:00
|
|
|
[
|
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"body":
|
2019-09-29 23:32:28 +00:00
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"id": 8,
|
|
|
|
"nodeType": "Block",
|
|
|
|
"src": "96:49:0",
|
|
|
|
"statements":
|
2019-09-29 23:32:28 +00:00
|
|
|
[
|
|
|
|
null
|
2020-11-20 15:54:53 +00:00
|
|
|
]
|
2019-09-29 23:32:28 +00:00
|
|
|
},
|
|
|
|
"id": 9,
|
2020-11-20 15:54:53 +00:00
|
|
|
"implemented": true,
|
|
|
|
"kind": "constructor",
|
|
|
|
"modifiers": [],
|
|
|
|
"name": "",
|
2021-01-21 15:01:39 +00:00
|
|
|
"nameLocation": "-1:-1:-1",
|
2020-11-20 15:54:53 +00:00
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters":
|
|
|
|
{
|
|
|
|
"id": 2,
|
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
|
|
|
"src": "93:2:0"
|
|
|
|
},
|
|
|
|
"returnParameters":
|
|
|
|
{
|
|
|
|
"id": 3,
|
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
|
|
|
"src": "96:0:0"
|
|
|
|
},
|
|
|
|
"scope": 18,
|
|
|
|
"src": "82:63:0",
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"virtual": false,
|
|
|
|
"visibility": "public"
|
2019-09-29 23:32:28 +00:00
|
|
|
},
|
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"body":
|
2019-09-29 23:32:28 +00:00
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"id": 16,
|
|
|
|
"nodeType": "Block",
|
|
|
|
"src": "440:19:0",
|
|
|
|
"statements":
|
2019-09-29 23:32:28 +00:00
|
|
|
[
|
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"expression":
|
2019-09-29 23:32:28 +00:00
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"hexValue": "35",
|
|
|
|
"id": 14,
|
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": true,
|
|
|
|
"kind": "number",
|
|
|
|
"lValueRequested": false,
|
|
|
|
"nodeType": "Literal",
|
|
|
|
"src": "453:1:0",
|
|
|
|
"typeDescriptions":
|
2019-09-29 23:32:28 +00:00
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"typeIdentifier": "t_rational_5_by_1",
|
|
|
|
"typeString": "int_const 5"
|
2019-09-29 23:32:28 +00:00
|
|
|
},
|
2020-11-20 15:54:53 +00:00
|
|
|
"value": "5"
|
|
|
|
},
|
|
|
|
"functionReturnParameters": 13,
|
|
|
|
"id": 15,
|
|
|
|
"nodeType": "Return",
|
|
|
|
"src": "446:8:0"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"functionSelector": "af11c34c",
|
|
|
|
"id": 17,
|
|
|
|
"implemented": true,
|
|
|
|
"kind": "function",
|
|
|
|
"modifiers": [],
|
|
|
|
"name": "five",
|
2021-01-21 15:01:39 +00:00
|
|
|
"nameLocation": "407:4:0",
|
2020-11-20 15:54:53 +00:00
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters":
|
|
|
|
{
|
|
|
|
"id": 10,
|
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
|
|
|
"src": "411:2:0"
|
|
|
|
},
|
|
|
|
"returnParameters":
|
|
|
|
{
|
|
|
|
"id": 13,
|
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"id": 12,
|
|
|
|
"mutability": "mutable",
|
|
|
|
"name": "",
|
2021-01-21 15:01:39 +00:00
|
|
|
"nameLocation": "-1:-1:-1",
|
2020-11-20 15:54:53 +00:00
|
|
|
"nodeType": "VariableDeclaration",
|
|
|
|
"scope": 17,
|
|
|
|
"src": "434:4:0",
|
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions":
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
},
|
|
|
|
"typeName":
|
2019-09-29 23:32:28 +00:00
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"id": 11,
|
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
|
|
|
"src": "434:4:0",
|
|
|
|
"typeDescriptions":
|
2019-09-29 23:32:28 +00:00
|
|
|
{
|
2020-11-20 15:54:53 +00:00
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"src": "433:6:0"
|
|
|
|
},
|
|
|
|
"scope": 18,
|
|
|
|
"src": "398:61:0",
|
|
|
|
"stateMutability": "view",
|
|
|
|
"virtual": false,
|
|
|
|
"visibility": "public"
|
2019-09-29 23:32:28 +00:00
|
|
|
}
|
|
|
|
],
|
2020-11-20 15:54:53 +00:00
|
|
|
"scope": 19,
|
2021-04-15 07:59:59 +00:00
|
|
|
"src": "62:399:0",
|
|
|
|
"usedErrors": []
|
2019-09-29 23:32:28 +00:00
|
|
|
}
|
|
|
|
],
|
2020-06-23 12:14:24 +00:00
|
|
|
"src": "36:426:0"
|
2019-09-06 11:39:29 +00:00
|
|
|
}
|