solidity/test/libsolidity/ASTJSON/non_utf8_parseOnly.json

155 lines
4.5 KiB
JSON
Raw Normal View History

2020-07-08 20:08:50 +00:00
{
"absolutePath": "a",
2022-02-17 12:38:29 +00:00
"id": 16,
2020-07-08 20:08:50 +00:00
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
2022-02-17 12:38:29 +00:00
"id": 15,
2020-07-08 20:08:50 +00:00
"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":
{
2022-02-17 12:38:29 +00:00
"id": 13,
2020-07-08 20:08:50 +00:00
"nodeType": "Block",
2022-02-17 12:38:29 +00:00
"src": "33:45:1",
2020-07-08 20:08:50 +00:00
"statements":
[
{
"assignments":
[
4
],
"declarations":
[
{
"constant": false,
"id": 4,
"mutability": "mutable",
"name": "x",
2021-02-10 17:40:05 +00:00
"nameLocation": "49:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "VariableDeclaration",
"src": "35:15:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {},
"typeName":
{
"id": 3,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "35:6:1",
"typeDescriptions": {}
},
"visibility": "internal"
}
],
2022-02-17 12:38:29 +00:00
"id": 12,
2020-07-08 20:08:50 +00:00
"initialValue":
{
2022-02-17 12:38:29 +00:00
"arguments":
[
{
"arguments":
[
{
"hexValue": "ff",
"id": 9,
"kind": "hexString",
"nodeType": "Literal",
"src": "66:7:1",
"typeDescriptions": {}
}
],
"expression":
{
"id": 8,
"nodeType": "ElementaryTypeNameExpression",
"src": "60:5:1",
"typeDescriptions": {},
"typeName":
{
"id": 7,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "60:5:1",
"typeDescriptions": {}
}
},
"id": 10,
"names": [],
"nodeType": "FunctionCall",
"src": "60:14:1",
"tryCall": false,
"typeDescriptions": {}
}
],
"expression":
{
"id": 6,
"nodeType": "ElementaryTypeNameExpression",
"src": "53:6:1",
"typeDescriptions": {},
"typeName":
{
"id": 5,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "53:6:1",
"typeDescriptions": {}
}
},
"id": 11,
"names": [],
"nodeType": "FunctionCall",
"src": "53:22:1",
"tryCall": false,
2020-07-08 20:08:50 +00:00
"typeDescriptions": {}
},
"nodeType": "VariableDeclarationStatement",
2022-02-17 12:38:29 +00:00
"src": "35:40:1"
2020-07-08 20:08:50 +00:00
}
]
},
2022-02-17 12:38:29 +00:00
"id": 14,
2020-07-08 20:08:50 +00:00
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "f",
2021-02-10 17:40:05 +00:00
"nameLocation": "22:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 1,
"nodeType": "ParameterList",
"parameters": [],
"src": "23:2:1"
},
"returnParameters":
{
"id": 2,
"nodeType": "ParameterList",
"parameters": [],
"src": "33:0:1"
},
2022-02-17 12:38:29 +00:00
"src": "13:65:1",
2020-07-08 20:08:50 +00:00
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
}
],
2022-02-17 12:38:29 +00:00
"src": "0:80: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:81:1"
2020-07-08 20:08:50 +00:00
}