solidity/test/libsolidity/ASTJSON/mappings_legacy.json

267 lines
6.3 KiB
JSON
Raw Normal View History

{
"attributes":
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
2020-08-31 15:37:03 +00:00
19
]
2020-04-27 08:28:54 +00:00
}
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
2020-08-31 15:37:03 +00:00
19
],
"name": "C",
2020-08-31 15:37:03 +00:00
"scope": 20
},
"children":
[
{
"attributes":
{
"canonicalName": "C.E",
"name": "E"
},
"children":
[
{
"attributes":
{
"name": "A"
},
"id": 1,
"name": "EnumValue",
"src": "26:1:1"
},
{
"attributes":
{
"name": "B"
},
"id": 2,
"name": "EnumValue",
"src": "29:1:1"
},
{
"attributes":
{
"name": "C"
},
"id": 3,
"name": "EnumValue",
"src": "32:1:1"
}
],
"id": 4,
"name": "EnumDefinition",
"src": "17:18:1"
},
{
"attributes":
{
"constant": false,
2020-04-07 09:10:10 +00:00
"mutability": "mutable",
"name": "a",
2020-08-31 15:37:03 +00:00
"scope": 19,
"stateVariable": true,
"storageLocation": "default",
"type": "mapping(contract C => bool)",
"visibility": "internal"
},
"children":
[
{
"attributes":
{
"type": "mapping(contract C => bool)"
},
"children":
[
{
"attributes":
{
2020-08-31 15:37:03 +00:00
"referencedDeclaration": 19,
"type": "contract C"
},
2020-08-31 15:37:03 +00:00
"children":
[
{
"attributes":
{
"name": "C",
"referencedDeclaration": 19
},
"id": 5,
"name": "IdentifierPath",
"src": "48:1:1"
}
],
"id": 6,
"name": "UserDefinedTypeName",
"src": "48:1:1"
},
{
"attributes":
{
"name": "bool",
"type": "bool"
},
2020-08-31 15:37:03 +00:00
"id": 7,
"name": "ElementaryTypeName",
"src": "53:4:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 8,
"name": "Mapping",
"src": "40:18:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 9,
"name": "VariableDeclaration",
"src": "40:20:1"
},
{
"attributes":
{
"constant": false,
2020-04-07 09:10:10 +00:00
"mutability": "mutable",
"name": "b",
2020-08-31 15:37:03 +00:00
"scope": 19,
"stateVariable": true,
"storageLocation": "default",
"type": "mapping(address => bool)",
"visibility": "internal"
},
"children":
[
{
"attributes":
{
"type": "mapping(address => bool)"
},
"children":
[
{
"attributes":
{
"name": "address",
"type": "address"
},
2020-08-31 15:37:03 +00:00
"id": 10,
"name": "ElementaryTypeName",
"src": "74:7:1"
},
{
"attributes":
{
"name": "bool",
"type": "bool"
},
2020-08-31 15:37:03 +00:00
"id": 11,
"name": "ElementaryTypeName",
"src": "85:4:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 12,
"name": "Mapping",
"src": "66:24:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 13,
"name": "VariableDeclaration",
"src": "66:26:1"
},
{
"attributes":
{
"constant": false,
2020-04-07 09:10:10 +00:00
"mutability": "mutable",
"name": "c",
2020-08-31 15:37:03 +00:00
"scope": 19,
"stateVariable": true,
"storageLocation": "default",
"type": "mapping(enum C.E => bool)",
"visibility": "internal"
},
"children":
[
{
"attributes":
{
"type": "mapping(enum C.E => bool)"
},
"children":
[
{
"attributes":
{
"referencedDeclaration": 4,
"type": "enum C.E"
},
2020-08-31 15:37:03 +00:00
"children":
[
{
"attributes":
{
"name": "E",
"referencedDeclaration": 4
},
"id": 14,
"name": "IdentifierPath",
"src": "106:1:1"
}
],
"id": 15,
"name": "UserDefinedTypeName",
"src": "106:1:1"
},
{
"attributes":
{
"name": "bool",
"type": "bool"
},
2020-08-31 15:37:03 +00:00
"id": 16,
"name": "ElementaryTypeName",
"src": "111:4:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 17,
"name": "Mapping",
"src": "98:18:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 18,
"name": "VariableDeclaration",
"src": "98:20:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 19,
"name": "ContractDefinition",
"src": "0:121:1"
}
],
2020-08-31 15:37:03 +00:00
"id": 20,
"name": "SourceUnit",
"src": "0:122:1"
}