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

137 lines
3.1 KiB
JSON
Raw Normal View History

2019-10-15 10:38:12 +00:00
{
"attributes":
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
6
]
}
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
6
],
"name": "C",
"scope": 7
},
"children":
[
{
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
2019-10-15 10:38:12 +00:00
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers":
[
null
],
"name": "f",
"overrides": null,
"scope": 6,
"stateMutability": "pure",
"virtual": false,
2019-10-15 10:38:12 +00:00
"visibility": "public"
},
"children":
[
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 1,
"name": "ParameterList",
"src": "27:2:1"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 2,
"name": "ParameterList",
"src": "42: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": false,
"isSlot": false,
"src": "141:1:1",
"valueSize": 18446744073709551615
},
{
"declaration": 5,
"isOffset": false,
"isSlot": false,
"src": "172:1:1",
"valueSize": 18446744073709551615
}
2019-10-15 10:38:12 +00:00
],
"operations": "{\n let f := 0\n switch calldatasize()\n case 0 { f := 1 }\n default { f := 2 }\n}"
},
"children": [],
"id": 3,
"name": "InlineAssembly",
"src": "52:138:1"
}
],
"id": 4,
"name": "Block",
"src": "42:154:1"
}
],
"id": 5,
"name": "FunctionDefinition",
"src": "17:179:1"
}
],
"id": 6,
"name": "ContractDefinition",
"src": "0:198:1"
}
],
"id": 7,
"name": "SourceUnit",
"src": "0:199:1"
}