solidity/test/libsolidity/ASTJSON/using_for_directive.json

187 lines
3.8 KiB
JSON
Raw Normal View History

2018-08-03 17:41:35 +00:00
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
2021-10-11 08:16:52 +00:00
13
],
"L":
[
2021-10-11 08:16:52 +00:00
4
],
"f":
[
10
]
},
2021-10-11 08:16:52 +00:00
"id": 14,
"nodeType": "SourceUnit",
"nodes":
[
2021-10-11 08:16:52 +00:00
{
"functionList":
[
{
"function":
{
"id": 1,
"name": "f",
"nameLocations":
[
"7:1:1"
],
2021-10-11 08:16:52 +00:00
"nodeType": "IdentifierPath",
"referencedDeclaration": 10,
"src": "7:1:1"
}
}
],
2021-11-16 16:01:09 +00:00
"global": false,
2021-10-11 08:16:52 +00:00
"id": 3,
"nodeType": "UsingForDirective",
"src": "0:19:1",
"typeName":
{
"id": 2,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "14:4:1",
"typeDescriptions":
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
{
2019-10-23 20:10:12 +00:00
"abstract": false,
"baseContracts": [],
2021-09-28 09:05:52 +00:00
"canonicalName": "L",
"contractDependencies": [],
"contractKind": "library",
"fullyImplemented": true,
2021-10-11 08:16:52 +00:00
"id": 4,
"linearizedBaseContracts":
[
2021-10-11 08:16:52 +00:00
4
],
"name": "L",
2021-10-11 08:16:52 +00:00
"nameLocation": "28:1:1",
"nodeType": "ContractDefinition",
"nodes": [],
2021-10-11 08:16:52 +00:00
"scope": 14,
"src": "20:12:1",
2021-04-15 07:59:59 +00:00
"usedErrors": []
},
2021-10-11 08:16:52 +00:00
{
"body":
{
"id": 9,
"nodeType": "Block",
"src": "50:2:1",
"statements": []
},
"id": 10,
"implemented": true,
"kind": "freeFunction",
"modifiers": [],
"name": "f",
"nameLocation": "42:1:1",
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 7,
"nodeType": "ParameterList",
"parameters":
[
{
"constant": false,
"id": 6,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 10,
"src": "44:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions":
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName":
{
"id": 5,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "44:4:1",
"typeDescriptions":
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "43:6:1"
},
"returnParameters":
{
"id": 8,
"nodeType": "ParameterList",
"parameters": [],
"src": "50:0:1"
},
"scope": 14,
"src": "33:19:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
2019-10-23 20:10:12 +00:00
"abstract": false,
"baseContracts": [],
2021-09-28 09:05:52 +00:00
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
2021-10-11 08:16:52 +00:00
"id": 13,
"linearizedBaseContracts":
[
2021-10-11 08:16:52 +00:00
13
],
"name": "C",
2021-10-11 08:16:52 +00:00
"nameLocation": "62:1:1",
"nodeType": "ContractDefinition",
"nodes":
[
{
2021-11-16 16:01:09 +00:00
"global": false,
2021-10-11 08:16:52 +00:00
"id": 12,
"libraryName":
{
2021-10-11 08:16:52 +00:00
"id": 11,
"name": "L",
"nameLocations":
[
"72:1:1"
],
"nodeType": "IdentifierPath",
2021-10-11 08:16:52 +00:00
"referencedDeclaration": 4,
"src": "72:1:1"
},
"nodeType": "UsingForDirective",
2021-10-11 08:16:52 +00:00
"src": "66:14:1"
}
],
2021-10-11 08:16:52 +00:00
"scope": 14,
"src": "53:29:1",
2021-04-15 07:59:59 +00:00
"usedErrors": []
}
],
2021-10-11 08:16:52 +00:00
"src": "0:83:1"
2018-08-03 17:41:35 +00:00
}