solidity/test/libsolidity/ASTJSON/long_type_name_identifier_legacy.json
2020-04-07 17:30:54 +02:00

228 lines
5.8 KiB
JSON

{
"attributes":
{
"absolutePath": "a",
"exportedSymbols":
{
"c":
[
15
]
}
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
15
],
"name": "c",
"scope": 16
},
"children":
[
{
"attributes":
{
"constant": false,
"mutability": "mutable",
"name": "a",
"overrides": null,
"scope": 15,
"stateVariable": true,
"storageLocation": "default",
"type": "uint256[]",
"value": null,
"visibility": "internal"
},
"children":
[
{
"attributes":
{
"length": null,
"type": "uint256[]"
},
"children":
[
{
"attributes":
{
"name": "uint",
"type": "uint256"
},
"id": 1,
"name": "ElementaryTypeName",
"src": "13:4:1"
}
],
"id": 2,
"name": "ArrayTypeName",
"src": "13:6:1"
}
],
"id": 3,
"name": "VariableDeclaration",
"src": "13:8:1"
},
{
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers":
[
null
],
"name": "f",
"overrides": null,
"scope": 15,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
"children":
[
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 4,
"name": "ParameterList",
"src": "33:2:1"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 5,
"name": "ParameterList",
"src": "43:0:1"
},
{
"children":
[
{
"attributes":
{
"assignments":
[
10
]
},
"children":
[
{
"attributes":
{
"constant": false,
"mutability": "mutable",
"name": "b",
"overrides": null,
"scope": 13,
"stateVariable": false,
"storageLocation": "storage",
"type": "uint256[]",
"value": null,
"visibility": "internal"
},
"children":
[
{
"attributes":
{
"length": null,
"type": "uint256[]"
},
"children":
[
{
"attributes":
{
"name": "uint",
"type": "uint256"
},
"id": 8,
"name": "ElementaryTypeName",
"src": "45:4:1"
}
],
"id": 9,
"name": "ArrayTypeName",
"src": "45:6:1"
}
],
"id": 10,
"name": "VariableDeclaration",
"src": "45:16:1"
},
{
"attributes":
{
"argumentTypes": null,
"overloadedDeclarations":
[
null
],
"referencedDeclaration": 3,
"type": "uint256[] storage ref",
"value": "a"
},
"id": 11,
"name": "Identifier",
"src": "64:1:1"
}
],
"id": 12,
"name": "VariableDeclarationStatement",
"src": "45:20:1"
}
],
"id": 13,
"name": "Block",
"src": "43:25:1"
}
],
"id": 14,
"name": "FunctionDefinition",
"src": "23:45:1"
}
],
"id": 15,
"name": "ContractDefinition",
"src": "0:70:1"
}
],
"id": 16,
"name": "SourceUnit",
"src": "0:71:1"
}