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