solidity/test/libsolidity/ASTJSON/not_existing_import_parseOnly.json

120 lines
2.8 KiB
JSON
Raw Normal View History

2020-07-08 20:08:50 +00:00
{
"absolutePath": "a",
"id": 12,
2020-07-08 20:08:50 +00:00
"nodeType": "SourceUnit",
"nodes":
[
{
"absolutePath": "notexisting.sol",
2020-07-08 20:08:50 +00:00
"file": "notexisting.sol",
"id": 1,
2021-02-10 17:40:05 +00:00
"nameLocation": "28:11:1",
2020-07-08 20:08:50 +00:00
"nodeType": "ImportDirective",
"src": "0:40:1",
"symbolAliases": [],
"unitAlias": "NotExisting"
},
{
"abstract": false,
"baseContracts":
[
{
"baseName":
{
"id": 2,
"name": "NotExisting.X",
"nameLocations":
[
"55:11:1",
"67:1:1"
],
"nodeType": "IdentifierPath",
"src": "55:13:1"
2020-07-08 20:08:50 +00:00
},
"id": 3,
"nodeType": "InheritanceSpecifier",
"src": "55:13:1"
}
],
"contractDependencies": [],
"contractKind": "contract",
"id": 11,
2020-07-08 20:08:50 +00:00
"name": "C",
2021-02-10 17:40:05 +00:00
"nameLocation": "50:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
"constant": false,
"id": 6,
2020-07-08 20:08:50 +00:00
"mutability": "mutable",
"name": "myStruct",
2021-02-10 17:40:05 +00:00
"nameLocation": "102:8:1",
2020-07-08 20:08:50 +00:00
"nodeType": "VariableDeclaration",
"src": "72:38:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {},
"typeName":
{
"id": 5,
2020-07-08 20:08:50 +00:00
"nodeType": "UserDefinedTypeName",
"pathNode":
{
"id": 4,
"name": "NotExisting.SomeStruct",
"nameLocations":
[
"72:11:1",
"84:10:1"
],
"nodeType": "IdentifierPath",
"src": "72:22:1"
},
2020-07-08 20:08:50 +00:00
"src": "72:22:1",
"typeDescriptions": {}
},
"visibility": "public"
},
{
"body":
{
"id": 9,
2020-07-08 20:08:50 +00:00
"nodeType": "Block",
"src": "127:2:1",
"statements": []
},
"id": 10,
2020-07-08 20:08:50 +00:00
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
2021-02-10 17:40:05 +00:00
"nameLocation": "-1:-1:-1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 7,
2020-07-08 20:08:50 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "124:2:1"
},
"returnParameters":
{
"id": 8,
2020-07-08 20:08:50 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "127:0:1"
},
"src": "113:16:1",
"stateMutability": "nonpayable",
"virtual": false
}
],
2021-04-15 07:59:59 +00:00
"src": "41:90:1",
"usedErrors": [],
"usedEvents": []
2020-07-08 20:08:50 +00:00
}
],
"src": "0:132:1"
}