From d60940962442653ef7a97301820f1b9cc455bef0 Mon Sep 17 00:00:00 2001 From: wechman Date: Thu, 17 Feb 2022 12:33:29 +0100 Subject: [PATCH] Add not_existing_import.json to ASTJSON tests --- .../ASTJSON/not_existing_import.json | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/test/libsolidity/ASTJSON/not_existing_import.json b/test/libsolidity/ASTJSON/not_existing_import.json index e69de29bb..a36c59fff 100644 --- a/test/libsolidity/ASTJSON/not_existing_import.json +++ b/test/libsolidity/ASTJSON/not_existing_import.json @@ -0,0 +1,108 @@ +{ + "absolutePath": "a", + "id": 12, + "nodeType": "SourceUnit", + "nodes": + [ + { + "absolutePath": "notexisting.sol", + "file": "notexisting.sol", + "id": 1, + "nameLocation": "28:11:1", + "nodeType": "ImportDirective", + "src": "0:40:1", + "symbolAliases": [], + "unitAlias": "NotExisting" + }, + { + "abstract": false, + "baseContracts": + [ + { + "baseName": + { + "id": 2, + "name": "NotExisting.X", + "nodeType": "IdentifierPath", + "src": "55:13:1" + }, + "id": 3, + "nodeType": "InheritanceSpecifier", + "src": "55:13:1" + } + ], + "contractDependencies": [], + "contractKind": "contract", + "id": 11, + "name": "C", + "nameLocation": "50:1:1", + "nodeType": "ContractDefinition", + "nodes": + [ + { + "constant": false, + "id": 6, + "mutability": "mutable", + "name": "myStruct", + "nameLocation": "102:8:1", + "nodeType": "VariableDeclaration", + "src": "72:38:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": {}, + "typeName": + { + "id": 5, + "nodeType": "UserDefinedTypeName", + "pathNode": + { + "id": 4, + "name": "NotExisting.SomeStruct", + "nodeType": "IdentifierPath", + "src": "72:22:1" + }, + "src": "72:22:1", + "typeDescriptions": {} + }, + "visibility": "public" + }, + { + "body": + { + "id": 9, + "nodeType": "Block", + "src": "127:2:1", + "statements": [] + }, + "id": 10, + "implemented": true, + "kind": "constructor", + "modifiers": [], + "name": "", + "nameLocation": "-1:-1:-1", + "nodeType": "FunctionDefinition", + "parameters": + { + "id": 7, + "nodeType": "ParameterList", + "parameters": [], + "src": "124:2:1" + }, + "returnParameters": + { + "id": 8, + "nodeType": "ParameterList", + "parameters": [], + "src": "127:0:1" + }, + "src": "113:16:1", + "stateMutability": "nonpayable", + "virtual": false + } + ], + "src": "41:90:1", + "usedErrors": [] + } + ], + "src": "0:132:1" +}