mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
245 lines
6.4 KiB
JSON
245 lines
6.4 KiB
JSON
{
|
|
"absolutePath": "a",
|
|
"exportedSymbols":
|
|
{
|
|
"C":
|
|
[
|
|
19
|
|
]
|
|
},
|
|
"id": 20,
|
|
"nodeType": "SourceUnit",
|
|
"nodes":
|
|
[
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 19,
|
|
"linearizedBaseContracts":
|
|
[
|
|
19
|
|
],
|
|
"name": "C",
|
|
"nameLocation": "9:1:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes":
|
|
[
|
|
{
|
|
"canonicalName": "C.E",
|
|
"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",
|
|
"scope": 19,
|
|
"src": "40:20:1",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_mapping$_t_contract$_C_$19_$_t_bool_$",
|
|
"typeString": "mapping(contract C => bool)"
|
|
},
|
|
"typeName":
|
|
{
|
|
"id": 8,
|
|
"keyType":
|
|
{
|
|
"id": 6,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode":
|
|
{
|
|
"id": 5,
|
|
"name": "C",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 19,
|
|
"src": "48:1:1"
|
|
},
|
|
"referencedDeclaration": 19,
|
|
"src": "48:1:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_contract$_C_$19",
|
|
"typeString": "contract C"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "40:18:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_mapping$_t_contract$_C_$19_$_t_bool_$",
|
|
"typeString": "mapping(contract C => bool)"
|
|
},
|
|
"valueType":
|
|
{
|
|
"id": 7,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "53:4:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 13,
|
|
"mutability": "mutable",
|
|
"name": "b",
|
|
"nameLocation": "91:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 19,
|
|
"src": "66:26:1",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
|
|
"typeString": "mapping(address => bool)"
|
|
},
|
|
"typeName":
|
|
{
|
|
"id": 12,
|
|
"keyType":
|
|
{
|
|
"id": 10,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "74:7:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "66:24:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
|
|
"typeString": "mapping(address => bool)"
|
|
},
|
|
"valueType":
|
|
{
|
|
"id": 11,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "85:4:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 18,
|
|
"mutability": "mutable",
|
|
"name": "c",
|
|
"nameLocation": "117:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 19,
|
|
"src": "98:20:1",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_mapping$_t_enum$_E_$4_$_t_bool_$",
|
|
"typeString": "mapping(enum C.E => bool)"
|
|
},
|
|
"typeName":
|
|
{
|
|
"id": 17,
|
|
"keyType":
|
|
{
|
|
"id": 15,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode":
|
|
{
|
|
"id": 14,
|
|
"name": "E",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 4,
|
|
"src": "106:1:1"
|
|
},
|
|
"referencedDeclaration": 4,
|
|
"src": "106:1:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_enum$_E_$4",
|
|
"typeString": "enum C.E"
|
|
}
|
|
},
|
|
"nodeType": "Mapping",
|
|
"src": "98:18:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_mapping$_t_enum$_E_$4_$_t_bool_$",
|
|
"typeString": "mapping(enum C.E => bool)"
|
|
},
|
|
"valueType":
|
|
{
|
|
"id": 16,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "111:4:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 20,
|
|
"src": "0:121:1",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "0:122:1"
|
|
}
|