mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
1e63615206
Update tests. Additional tests Revert changes to the Natspec
388 lines
12 KiB
JSON
388 lines
12 KiB
JSON
{
|
|
"absolutePath": "a",
|
|
"exportedSymbols":
|
|
{
|
|
"C":
|
|
[
|
|
28
|
|
]
|
|
},
|
|
"id": 29,
|
|
"nodeType": "SourceUnit",
|
|
"nodes":
|
|
[
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "C",
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 28,
|
|
"linearizedBaseContracts":
|
|
[
|
|
28
|
|
],
|
|
"name": "C",
|
|
"nameLocation": "9:1:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes":
|
|
[
|
|
{
|
|
"constant": false,
|
|
"documentation":
|
|
{
|
|
"id": 1,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "17:8:1",
|
|
"text": "test"
|
|
},
|
|
"id": 3,
|
|
"mutability": "mutable",
|
|
"name": "a",
|
|
"nameLocation": "35:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 28,
|
|
"src": "30:6:1",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName":
|
|
{
|
|
"id": 2,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "30:4:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body":
|
|
{
|
|
"id": 26,
|
|
"nodeType": "Block",
|
|
"src": "84:181:1",
|
|
"statements":
|
|
[
|
|
{
|
|
"body":
|
|
{
|
|
"id": 22,
|
|
"nodeType": "Block",
|
|
"src": "142:75:1",
|
|
"statements":
|
|
[
|
|
{
|
|
"documentation": "tee\n s \"t\" 3",
|
|
"expression":
|
|
{
|
|
"id": 20,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide":
|
|
{
|
|
"id": 18,
|
|
"name": "x",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 6,
|
|
"src": "200:1:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "*=",
|
|
"rightHandSide":
|
|
{
|
|
"hexValue": "32",
|
|
"id": 19,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "205:1:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_rational_2_by_1",
|
|
"typeString": "int_const 2"
|
|
},
|
|
"value": "2"
|
|
},
|
|
"src": "200:6:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 21,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "200:6:1"
|
|
}
|
|
]
|
|
},
|
|
"condition":
|
|
{
|
|
"commonType":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 14,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression":
|
|
{
|
|
"id": 12,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 9,
|
|
"src": "129:1:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "<",
|
|
"rightExpression":
|
|
{
|
|
"hexValue": "3230",
|
|
"id": 13,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "133:2:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_rational_20_by_1",
|
|
"typeString": "int_const 20"
|
|
},
|
|
"value": "20"
|
|
},
|
|
"src": "129:6:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"documentation": "test2",
|
|
"id": 23,
|
|
"initializationExpression":
|
|
{
|
|
"assignments":
|
|
[
|
|
9
|
|
],
|
|
"declarations":
|
|
[
|
|
{
|
|
"constant": false,
|
|
"id": 9,
|
|
"mutability": "mutable",
|
|
"name": "i",
|
|
"nameLocation": "122:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 23,
|
|
"src": "117:6:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName":
|
|
{
|
|
"id": 8,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "117:4:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"id": 11,
|
|
"initialValue":
|
|
{
|
|
"hexValue": "30",
|
|
"id": 10,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "126:1:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_rational_0_by_1",
|
|
"typeString": "int_const 0"
|
|
},
|
|
"value": "0"
|
|
},
|
|
"nodeType": "VariableDeclarationStatement",
|
|
"src": "117:10:1"
|
|
},
|
|
"loopExpression":
|
|
{
|
|
"expression":
|
|
{
|
|
"id": 16,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "UnaryOperation",
|
|
"operator": "++",
|
|
"prefix": false,
|
|
"src": "137:3:1",
|
|
"subExpression":
|
|
{
|
|
"id": 15,
|
|
"name": "i",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 9,
|
|
"src": "137:1:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 17,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "137:3:1"
|
|
},
|
|
"nodeType": "ForStatement",
|
|
"src": "112:105:1"
|
|
},
|
|
{
|
|
"documentation": "tes \"t4\" ",
|
|
"expression":
|
|
{
|
|
"id": 24,
|
|
"name": "x",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 6,
|
|
"src": "257:1:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 7,
|
|
"id": 25,
|
|
"nodeType": "Return",
|
|
"src": "250:8:1"
|
|
}
|
|
]
|
|
},
|
|
"functionSelector": "26121ff0",
|
|
"id": 27,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "f",
|
|
"nameLocation": "51:1:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters":
|
|
{
|
|
"id": 4,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "52:2:1"
|
|
},
|
|
"returnParameters":
|
|
{
|
|
"id": 7,
|
|
"nodeType": "ParameterList",
|
|
"parameters":
|
|
[
|
|
{
|
|
"constant": false,
|
|
"id": 6,
|
|
"mutability": "mutable",
|
|
"name": "x",
|
|
"nameLocation": "81:1:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 27,
|
|
"src": "76:6:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName":
|
|
{
|
|
"id": 5,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "76:4:1",
|
|
"typeDescriptions":
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "75:8:1"
|
|
},
|
|
"scope": 28,
|
|
"src": "42:223:1",
|
|
"stateMutability": "pure",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 29,
|
|
"src": "0:267:1",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "0:268:1"
|
|
}
|