mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
1e63615206
Update tests. Additional tests Revert changes to the Natspec
237 lines
6.2 KiB
JSON
237 lines
6.2 KiB
JSON
{
|
|
"absolutePath": "a",
|
|
"id": 24,
|
|
"nodeType": "SourceUnit",
|
|
"nodes":
|
|
[
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"id": 23,
|
|
"name": "C",
|
|
"nameLocation": "9:1:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes":
|
|
[
|
|
{
|
|
"id": 4,
|
|
"members":
|
|
[
|
|
{
|
|
"id": 1,
|
|
"name": "A",
|
|
"nameLocation": "26:1:1",
|
|
"nodeType": "EnumValue",
|
|
"src": "26:1:1"
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "B",
|
|
"nameLocation": "29:1:1",
|
|
"nodeType": "EnumValue",
|
|
"src": "29:1:1"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "C",
|
|
"nameLocation": "32:1:1",
|
|
"nodeType": "EnumValue",
|
|
"src": "32:1:1"
|
|
}
|
|
],
|
|
"name": "E",
|
|
"nameLocation": "22:1:1",
|
|
"nodeType": "EnumDefinition",
|
|
"src": "17:18:1"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 9,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "59:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"src": "40:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {},
|
|
"typeName":
|
|
{
|
|
"id": 8,
|
|
"keyName": "",
|
|
"keyNameLocation": "-1:-1:-1",
|
|
"keyType":
|
|
{
|
|
"id": 6,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode":
|
|
{
|
|
"id": 5,
|
|
"name": "C",
|
|
"nameLocations":
|
|
[
|
|
"48:1:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"src": "48:1:1"
|
|
},
|
|
"src": "48:1:1",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "40:18:1",
|
|
"typeDescriptions": {},
|
|
"valueName": "",
|
|
"valueNameLocation": "-1:-1:-1",
|
|
"valueType":
|
|
{
|
|
"id": 7,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "53:4:1",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 13,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "91:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"src": "66:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {},
|
|
"typeName":
|
|
{
|
|
"id": 12,
|
|
"keyName": "",
|
|
"keyNameLocation": "-1:-1:-1",
|
|
"keyType":
|
|
{
|
|
"id": 10,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "74:7:1",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "66:24:1",
|
|
"typeDescriptions": {},
|
|
"valueName": "",
|
|
"valueNameLocation": "-1:-1:-1",
|
|
"valueType":
|
|
{
|
|
"id": 11,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "85:4:1",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 18,
|
|
"mutability": "mutable",
|
|
"name": "c",
|
|
"nameLocation": "117:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"src": "98:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {},
|
|
"typeName":
|
|
{
|
|
"id": 17,
|
|
"keyName": "",
|
|
"keyNameLocation": "-1:-1:-1",
|
|
"keyType":
|
|
{
|
|
"id": 15,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode":
|
|
{
|
|
"id": 14,
|
|
"name": "E",
|
|
"nameLocations":
|
|
[
|
|
"106:1:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"src": "106:1:1"
|
|
},
|
|
"src": "106:1:1",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "98:18:1",
|
|
"typeDescriptions": {},
|
|
"valueName": "",
|
|
"valueNameLocation": "-1:-1:-1",
|
|
"valueType":
|
|
{
|
|
"id": 16,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "111:4:1",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 22,
|
|
"mutability": "mutable",
|
|
"name": "d",
|
|
"nameLocation": "169:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"src": "124:46:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {},
|
|
"typeName":
|
|
{
|
|
"id": 21,
|
|
"keyName": "keyAddress",
|
|
"keyNameLocation": "140:10:1",
|
|
"keyType":
|
|
{
|
|
"id": 19,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "132:7:1",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "124:44:1",
|
|
"typeDescriptions": {},
|
|
"valueName": "value",
|
|
"valueNameLocation": "162:5:1",
|
|
"valueType":
|
|
{
|
|
"id": 20,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "154:7:1",
|
|
"typeDescriptions": {}
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "0:173:1",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "0:174:1"
|
|
}
|