solidity/test/libsolidity/ASTJSON/assembly/slot_offset_legacy.json

208 lines
4.8 KiB
JSON
Raw Normal View History

2019-10-15 10:38:12 +00:00
{
"attributes":
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
11
]
2020-04-27 08:28:54 +00:00
}
2019-10-15 10:38:12 +00:00
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
11
],
"name": "C",
"scope": 12
},
"children":
[
{
"attributes":
{
"canonicalName": "C.S",
"name": "S",
"scope": 11,
"visibility": "public"
},
"children":
[
{
"attributes":
{
"constant": false,
2020-04-07 09:10:10 +00:00
"mutability": "mutable",
2019-10-15 10:38:12 +00:00
"name": "x",
"scope": 3,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"visibility": "internal"
},
"children":
[
{
"attributes":
{
"name": "uint",
"type": "uint256"
},
"id": 1,
"name": "ElementaryTypeName",
"src": "28:4:1"
}
],
"id": 2,
"name": "VariableDeclaration",
"src": "28:6:1"
}
],
"id": 3,
"name": "StructDefinition",
"src": "17:20:1"
},
{
"attributes":
{
"constant": false,
2020-04-07 09:10:10 +00:00
"mutability": "mutable",
2019-10-15 10:38:12 +00:00
"name": "s",
"scope": 11,
"stateVariable": true,
"storageLocation": "default",
"type": "struct C.S",
"visibility": "internal"
},
"children":
[
{
"attributes":
{
"name": "S",
"referencedDeclaration": 3,
"type": "struct C.S"
},
"id": 4,
"name": "UserDefinedTypeName",
"src": "42:1:1"
}
],
"id": 5,
"name": "VariableDeclaration",
"src": "42:3:1"
},
{
"attributes":
{
"functionSelector": "ffae15ba",
2019-10-15 10:38:12 +00:00
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers":
[
null
],
"name": "e",
"scope": 11,
"stateMutability": "pure",
"virtual": false,
2019-10-15 10:38:12 +00:00
"visibility": "public"
},
"children":
[
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 6,
"name": "ParameterList",
"src": "61:2:1"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 7,
"name": "ParameterList",
"src": "76:0:1"
},
{
"children":
[
{
"attributes":
{
2020-01-14 11:46:47 +00:00
"evmVersion": %EVMVERSION%,
2019-10-15 10:38:12 +00:00
"externalReferences":
[
{
"declaration": 5,
"isOffset": true,
"isSlot": false,
"src": "106:8:1",
"valueSize": 1
},
{
"declaration": 5,
"isOffset": false,
"isSlot": true,
"src": "128:6:1",
"valueSize": 1
}
],
"operations": "{\n let x := s.offset\n let y := mul(s.slot, 2)\n}"
2019-10-15 10:38:12 +00:00
},
"children": [],
"id": 8,
"name": "InlineAssembly",
"src": "86:54:1"
}
],
"id": 9,
"name": "Block",
"src": "76:70:1"
}
],
"id": 10,
"name": "FunctionDefinition",
"src": "51:95:1"
}
],
"id": 11,
"name": "ContractDefinition",
"src": "0:148:1"
}
],
"id": 12,
"name": "SourceUnit",
"src": "0:149:1"
}