solidity/test/libsolidity/ASTJSON/source_location_legacy.json
2020-05-20 16:56:33 +05:30

195 lines
5.0 KiB
JSON

{
"attributes":
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
11
]
}
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
11
],
"name": "C",
"scope": 12
},
"children":
[
{
"attributes":
{
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers":
[
null
],
"name": "f",
"scope": 11,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
"children":
[
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 1,
"name": "ParameterList",
"src": "23:2:1"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 2,
"name": "ParameterList",
"src": "26:0:1"
},
{
"children":
[
{
"attributes":
{
"assignments":
[
3
]
},
"children":
[
{
"attributes":
{
"constant": false,
"mutability": "mutable",
"name": "x",
"scope": 9,
"stateVariable": false,
"storageLocation": "default",
"type": "uint8",
"visibility": "internal"
},
"children": [],
"id": 3,
"name": "VariableDeclaration",
"src": "28:5:1"
},
{
"attributes":
{
"hexvalue": "32",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"token": "number",
"type": "int_const 2",
"value": "2"
},
"id": 4,
"name": "Literal",
"src": "36:1:1"
}
],
"id": 5,
"name": "VariableDeclarationStatement",
"src": "28:9:1"
},
{
"children":
[
{
"attributes":
{
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "++",
"prefix": false,
"type": "uint8"
},
"children":
[
{
"attributes":
{
"overloadedDeclarations":
[
null
],
"referencedDeclaration": 3,
"type": "uint8",
"value": "x"
},
"id": 6,
"name": "Identifier",
"src": "39:1:1"
}
],
"id": 7,
"name": "UnaryOperation",
"src": "39:3:1"
}
],
"id": 8,
"name": "ExpressionStatement",
"src": "39:3:1"
}
],
"id": 9,
"name": "Block",
"src": "26:19:1"
}
],
"id": 10,
"name": "FunctionDefinition",
"src": "13:32:1"
}
],
"id": 11,
"name": "ContractDefinition",
"src": "0:47:1"
}
],
"id": 12,
"name": "SourceUnit",
"src": "0:48:1"
}