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

143 lines
4.0 KiB
JSON
Raw Normal View History

2020-07-08 20:08:50 +00:00
{
"absolutePath": "a",
"id": 9,
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"id": 8,
"name": "C",
2021-02-10 17:40:05 +00:00
"nameLocation": "9:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
"body":
{
"id": 6,
"nodeType": "Block",
2022-02-17 12:38:29 +00:00
"src": "57:95:1",
2020-07-08 20:08:50 +00:00
"statements":
[
{
"AST":
{
"nodeType": "YulBlock",
2022-02-17 12:38:29 +00:00
"src": "72:76:1",
2020-07-08 20:08:50 +00:00
"statements":
[
{
"body":
{
"nodeType": "YulBlock",
2022-02-17 12:38:29 +00:00
"src": "94:35:1",
2020-07-08 20:08:50 +00:00
"statements":
[
{
"body":
{
"nodeType": "YulBlock",
"src": "118:3:1",
"statements": []
},
"name": "f2",
"nodeType": "YulFunctionDefinition",
"src": "104:17:1"
}
]
},
"name": "f1",
"nodeType": "YulFunctionDefinition",
2022-02-17 12:38:29 +00:00
"src": "80:49:1"
},
{
"nodeType": "YulAssignment",
"src": "136:6:1",
"value":
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "141:1:1",
"type": "",
"value": "2"
},
"variableNames":
[
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "136:1:1"
}
]
2020-07-08 20:08:50 +00:00
}
]
},
"evmVersion": %EVMVERSION%,
2020-07-08 20:08:50 +00:00
"externalReferences": [],
"id": 5,
"nodeType": "InlineAssembly",
2022-02-17 12:38:29 +00:00
"src": "63:85:1"
2020-07-08 20:08:50 +00:00
}
]
},
"id": 7,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "f",
2021-02-10 17:40:05 +00:00
"nameLocation": "24:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 1,
"nodeType": "ParameterList",
"parameters": [],
"src": "25:2:1"
},
"returnParameters":
{
"id": 4,
"nodeType": "ParameterList",
"parameters":
[
{
"constant": false,
"id": 3,
"mutability": "mutable",
"name": "x",
2021-02-10 17:40:05 +00:00
"nameLocation": "54:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "VariableDeclaration",
"src": "49:6:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {},
"typeName":
{
"id": 2,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "49:4:1",
"typeDescriptions": {}
},
"visibility": "internal"
}
],
"src": "48:8:1"
},
2022-02-17 12:38:29 +00:00
"src": "15:137:1",
2020-07-08 20:08:50 +00:00
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
}
],
2022-02-17 12:38:29 +00:00
"src": "0:154:1",
2021-04-15 07:59:59 +00:00
"usedErrors": []
2020-07-08 20:08:50 +00:00
}
],
2022-02-17 12:38:29 +00:00
"src": "0:155:1"
2020-07-08 20:08:50 +00:00
}