solidity/test/libsolidity/ASTJSON/using_for_directive_parseOnly.json

142 lines
3.0 KiB
JSON
Raw Normal View History

2020-07-08 20:08:50 +00:00
{
"absolutePath": "a",
2021-10-11 08:16:52 +00:00
"id": 14,
2020-07-08 20:08:50 +00:00
"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",
"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": {}
}
},
2020-07-08 20:08:50 +00:00
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "library",
2021-10-11 08:16:52 +00:00
"id": 4,
2020-07-08 20:08:50 +00:00
"name": "L",
2021-10-11 08:16:52 +00:00
"nameLocation": "28:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes": [],
2021-10-11 08:16:52 +00:00
"src": "20:12:1",
2021-04-15 07:59:59 +00:00
"usedErrors": []
2020-07-08 20:08:50 +00:00
},
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",
"src": "44:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {},
"typeName":
{
"id": 5,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "44:4:1",
"typeDescriptions": {}
},
"visibility": "internal"
}
],
"src": "43:6:1"
},
"returnParameters":
{
"id": 8,
"nodeType": "ParameterList",
"parameters": [],
"src": "50:0:1"
},
"src": "33:19:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
2020-07-08 20:08:50 +00:00
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
2021-10-11 08:16:52 +00:00
"id": 13,
2020-07-08 20:08:50 +00:00
"name": "C",
2021-10-11 08:16:52 +00:00
"nameLocation": "62:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
2021-11-16 16:01:09 +00:00
"global": false,
2021-10-11 08:16:52 +00:00
"id": 12,
2020-07-08 20:08:50 +00:00
"libraryName":
{
2021-10-11 08:16:52 +00:00
"id": 11,
2020-07-08 20:08:50 +00:00
"name": "L",
"nameLocations":
[
"72:1:1"
],
"nodeType": "IdentifierPath",
2021-10-11 08:16:52 +00:00
"src": "72:1:1"
2020-07-08 20:08:50 +00:00
},
"nodeType": "UsingForDirective",
2021-10-11 08:16:52 +00:00
"src": "66:14:1"
2020-07-08 20:08:50 +00:00
}
],
2021-10-11 08:16:52 +00:00
"src": "53:29:1",
2021-04-15 07:59:59 +00:00
"usedErrors": []
2020-07-08 20:08:50 +00:00
}
],
2021-10-11 08:16:52 +00:00
"src": "0:83:1"
2020-07-08 20:08:50 +00:00
}