mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
129 lines
3.7 KiB
JSON
129 lines
3.7 KiB
JSON
{
|
|
"absolutePath": "a",
|
|
"id": 7,
|
|
"nodeType": "SourceUnit",
|
|
"nodes":
|
|
[
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"id": 6,
|
|
"name": "C",
|
|
"nameLocation": "9:1:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes":
|
|
[
|
|
{
|
|
"body":
|
|
{
|
|
"id": 4,
|
|
"nodeType": "Block",
|
|
"src": "42:58:1",
|
|
"statements":
|
|
[
|
|
{
|
|
"AST":
|
|
{
|
|
"nativeSrc": "61:33:1",
|
|
"nodeType": "YulBlock",
|
|
"src": "61:33:1",
|
|
"statements":
|
|
[
|
|
{
|
|
"cases":
|
|
[
|
|
{
|
|
"body":
|
|
{
|
|
"nativeSrc": "79:2:1",
|
|
"nodeType": "YulBlock",
|
|
"src": "79:2:1",
|
|
"statements": []
|
|
},
|
|
"nativeSrc": "72:9:1",
|
|
"nodeType": "YulCase",
|
|
"src": "72:9:1",
|
|
"value":
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "77:1:1",
|
|
"nodeType": "YulLiteral",
|
|
"src": "77:1:1",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
},
|
|
{
|
|
"body":
|
|
{
|
|
"nativeSrc": "90:2:1",
|
|
"nodeType": "YulBlock",
|
|
"src": "90:2:1",
|
|
"statements": []
|
|
},
|
|
"nativeSrc": "82:10:1",
|
|
"nodeType": "YulCase",
|
|
"src": "82:10:1",
|
|
"value": "default"
|
|
}
|
|
],
|
|
"expression":
|
|
{
|
|
"kind": "number",
|
|
"nativeSrc": "70:1:1",
|
|
"nodeType": "YulLiteral",
|
|
"src": "70:1:1",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"nativeSrc": "63:29:1",
|
|
"nodeType": "YulSwitch",
|
|
"src": "63:29:1"
|
|
}
|
|
]
|
|
},
|
|
"evmVersion": %EVMVERSION%,
|
|
"externalReferences": [],
|
|
"id": 3,
|
|
"nodeType": "InlineAssembly",
|
|
"src": "52:42:1"
|
|
}
|
|
]
|
|
},
|
|
"id": 5,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "g",
|
|
"nameLocation": "26:1:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters":
|
|
{
|
|
"id": 1,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "27:2:1"
|
|
},
|
|
"returnParameters":
|
|
{
|
|
"id": 2,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "42:0:1"
|
|
},
|
|
"src": "17:83:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"src": "0:102:1",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "0:103:1"
|
|
}
|