solidity/test/libsolidity/ASTJSON/long_type_name_binary_operation_legacy.json

209 lines
4.2 KiB
JSON
Raw Normal View History

2018-08-03 17:41:35 +00:00
{
"attributes" :
{
"absolutePath" : "a",
"exportedSymbols" :
{
"c" :
[
11
]
}
},
"children" :
[
{
"attributes" :
{
"baseContracts" :
[
null
],
"contractDependencies" :
[
null
],
"contractKind" : "contract",
"documentation" : null,
"fullyImplemented" : true,
"linearizedBaseContracts" :
[
11
],
"name" : "c",
"scope" : 12
},
"children" :
[
{
"attributes" :
{
"documentation" : null,
"implemented" : true,
"isConstructor" : false,
"kind" : "function",
2018-08-03 17:41:35 +00:00
"modifiers" :
[
null
],
"name" : "f",
"scope" : 11,
"stateMutability" : "nonpayable",
"superFunction" : null,
"visibility" : "public"
},
"children" :
[
{
"attributes" :
{
"parameters" :
[
null
]
},
"children" : [],
"id" : 1,
"name" : "ParameterList",
"src" : "23:2:1"
},
{
"attributes" :
{
"parameters" :
[
null
]
},
"children" : [],
"id" : 2,
"name" : "ParameterList",
"src" : "33:0:1"
},
{
"children" :
[
{
"attributes" :
{
"assignments" :
[
4
]
},
"children" :
[
{
"attributes" :
{
"constant" : false,
"name" : "a",
"scope" : 9,
"stateVariable" : false,
"storageLocation" : "default",
"type" : "uint256",
"value" : null,
"visibility" : "internal"
},
"children" :
[
{
"attributes" :
{
"name" : "uint",
"type" : "uint256"
},
"id" : 3,
"name" : "ElementaryTypeName",
"src" : "35:4:1"
}
],
"id" : 4,
"name" : "VariableDeclaration",
"src" : "35:6:1"
},
{
"attributes" :
{
"argumentTypes" : null,
"commonType" :
{
"typeIdentifier" : "t_rational_5_by_1",
"typeString" : "int_const 5"
},
"isConstant" : false,
"isLValue" : false,
"isPure" : true,
"lValueRequested" : false,
"operator" : "+",
"type" : "int_const 5"
},
"children" :
[
{
"attributes" :
{
"argumentTypes" : null,
"hexvalue" : "32",
"isConstant" : false,
"isLValue" : false,
"isPure" : true,
"lValueRequested" : false,
"subdenomination" : null,
"token" : "number",
"type" : "int_const 2",
"value" : "2"
},
"id" : 5,
"name" : "Literal",
"src" : "44:1:1"
},
{
"attributes" :
{
"argumentTypes" : null,
"hexvalue" : "33",
"isConstant" : false,
"isLValue" : false,
"isPure" : true,
"lValueRequested" : false,
"subdenomination" : null,
"token" : "number",
"type" : "int_const 3",
"value" : "3"
},
"id" : 6,
"name" : "Literal",
"src" : "48:1:1"
}
],
"id" : 7,
"name" : "BinaryOperation",
"src" : "44:5:1"
}
],
"id" : 8,
"name" : "VariableDeclarationStatement",
"src" : "35:14:1"
}
],
"id" : 9,
"name" : "Block",
"src" : "33:19:1"
}
],
"id" : 10,
"name" : "FunctionDefinition",
"src" : "13:39:1"
}
],
"id" : 11,
"name" : "ContractDefinition",
"src" : "0:54:1"
}
],
"id" : 12,
"name" : "SourceUnit",
"src" : "0:55:1"
}