solidity/test/libsolidity/ASTJSON/documentation_on_statements_parseOnly.json
chriseth 1e63615206 Export all events.
Update tests.

Additional tests

Revert changes to the Natspec
2023-05-03 14:08:27 -03:00

262 lines
7.8 KiB
JSON

{
"absolutePath": "a",
"id": 28,
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"id": 27,
"name": "C",
"nameLocation": "9:1:1",
"nodeType": "ContractDefinition",
"nodes":
[
{
"constant": false,
"id": 2,
"mutability": "mutable",
"name": "a",
"nameLocation": "50:1:1",
"nodeType": "VariableDeclaration",
"src": "45:6:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {},
"typeName":
{
"id": 1,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "45:4:1",
"typeDescriptions": {}
},
"visibility": "internal"
},
{
"body":
{
"id": 25,
"nodeType": "Block",
"src": "99:229:1",
"statements":
[
{
"body":
{
"id": 21,
"nodeType": "Block",
"src": "156:66:1",
"statements":
[
{
"expression":
{
"id": 19,
"leftHandSide":
{
"id": 17,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"src": "205:1:1",
"typeDescriptions": {}
},
"nodeType": "Assignment",
"operator": "*=",
"rightHandSide":
{
"hexValue": "32",
"id": 18,
"kind": "number",
"nodeType": "Literal",
"src": "210:1:1",
"typeDescriptions": {},
"value": "2"
},
"src": "205:6:1",
"typeDescriptions": {}
},
"id": 20,
"nodeType": "ExpressionStatement",
"src": "205:6:1"
}
]
},
"condition":
{
"commonType": {},
"id": 13,
"leftExpression":
{
"id": 11,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"src": "143:1:1",
"typeDescriptions": {}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression":
{
"hexValue": "3230",
"id": 12,
"kind": "number",
"nodeType": "Literal",
"src": "147:2:1",
"typeDescriptions": {},
"value": "20"
},
"src": "143:6:1",
"typeDescriptions": {}
},
"id": 22,
"initializationExpression":
{
"assignments":
[
8
],
"declarations":
[
{
"constant": false,
"id": 8,
"mutability": "mutable",
"name": "i",
"nameLocation": "136:1:1",
"nodeType": "VariableDeclaration",
"src": "131:6:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {},
"typeName":
{
"id": 7,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "131:4:1",
"typeDescriptions": {}
},
"visibility": "internal"
}
],
"id": 10,
"initialValue":
{
"hexValue": "30",
"id": 9,
"kind": "number",
"nodeType": "Literal",
"src": "140:1:1",
"typeDescriptions": {},
"value": "0"
},
"nodeType": "VariableDeclarationStatement",
"src": "131:10:1"
},
"loopExpression":
{
"expression":
{
"id": 15,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
"src": "151:3:1",
"subExpression":
{
"id": 14,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"src": "151:1:1",
"typeDescriptions": {}
},
"typeDescriptions": {}
},
"id": 16,
"nodeType": "ExpressionStatement",
"src": "151:3:1"
},
"nodeType": "ForStatement",
"src": "126:96:1"
},
{
"expression":
{
"id": 23,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"src": "320:1:1",
"typeDescriptions": {}
},
"id": 24,
"nodeType": "Return",
"src": "313:8:1"
}
]
},
"id": 26,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "f",
"nameLocation": "66:1:1",
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 3,
"nodeType": "ParameterList",
"parameters": [],
"src": "67:2:1"
},
"returnParameters":
{
"id": 6,
"nodeType": "ParameterList",
"parameters":
[
{
"constant": false,
"id": 5,
"mutability": "mutable",
"name": "x",
"nameLocation": "96:1:1",
"nodeType": "VariableDeclaration",
"src": "91:6:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {},
"typeName":
{
"id": 4,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "91:4:1",
"typeDescriptions": {}
},
"visibility": "internal"
}
],
"src": "90:8:1"
},
"src": "57:271:1",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
}
],
"src": "0:330:1",
"usedErrors": [],
"usedEvents": []
}
],
"src": "0:331:1"
}