solidity/test/libsolidity/ASTJSON/source_location.json

168 lines
4.6 KiB
JSON
Raw Normal View History

2018-08-03 17:41:35 +00:00
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
2020-07-15 17:50:59 +00:00
12
]
},
2020-07-15 17:50:59 +00:00
"id": 13,
"nodeType": "SourceUnit",
"nodes":
[
{
2019-10-23 20:10:12 +00:00
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
2020-07-15 17:50:59 +00:00
"id": 12,
"linearizedBaseContracts":
[
2020-07-15 17:50:59 +00:00
12
],
"name": "C",
"nodeType": "ContractDefinition",
"nodes":
[
{
"body":
{
2020-07-15 17:50:59 +00:00
"id": 10,
"nodeType": "Block",
2020-07-15 17:50:59 +00:00
"src": "26:20:1",
"statements":
[
{
"assignments":
[
2020-07-15 17:50:59 +00:00
4
],
"declarations":
[
{
"constant": false,
2020-07-15 17:50:59 +00:00
"id": 4,
2020-04-07 09:10:10 +00:00
"mutability": "mutable",
"name": "x",
"nodeType": "VariableDeclaration",
2020-07-15 17:50:59 +00:00
"scope": 10,
"src": "28:6:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions":
{
2020-07-15 17:50:59 +00:00
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName":
{
"id": 3,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "28:4:1",
"typeDescriptions":
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
2020-07-15 17:50:59 +00:00
"id": 6,
"initialValue":
{
"hexValue": "32",
2020-07-15 17:50:59 +00:00
"id": 5,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2020-07-15 17:50:59 +00:00
"src": "37:1:1",
"typeDescriptions":
{
"typeIdentifier": "t_rational_2_by_1",
"typeString": "int_const 2"
},
"value": "2"
},
"nodeType": "VariableDeclarationStatement",
2020-07-15 17:50:59 +00:00
"src": "28:10:1"
},
{
"expression":
{
2020-07-15 17:50:59 +00:00
"id": 8,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
2020-07-15 17:50:59 +00:00
"src": "40:3:1",
"subExpression":
{
2020-07-15 17:50:59 +00:00
"id": 7,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2020-07-15 17:50:59 +00:00
"referencedDeclaration": 4,
"src": "40:1:1",
"typeDescriptions":
{
2020-07-15 17:50:59 +00:00
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions":
{
2020-07-15 17:50:59 +00:00
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2020-07-15 17:50:59 +00:00
"id": 9,
"nodeType": "ExpressionStatement",
2020-07-15 17:50:59 +00:00
"src": "40:3:1"
}
]
},
"functionSelector": "26121ff0",
2020-07-15 17:50:59 +00:00
"id": 11,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "f",
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 1,
"nodeType": "ParameterList",
"parameters": [],
"src": "23:2:1"
},
"returnParameters":
{
"id": 2,
"nodeType": "ParameterList",
"parameters": [],
"src": "26:0:1"
},
2020-07-15 17:50:59 +00:00
"scope": 12,
"src": "13:33:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
}
],
2020-07-15 17:50:59 +00:00
"scope": 13,
"src": "0:48:1"
}
],
2020-07-15 17:50:59 +00:00
"src": "0:49:1"
2018-08-03 17:41:35 +00:00
}