solidity/test/libsolidity/ASTJSON/short_type_name.json

129 lines
2.6 KiB
JSON

{
"absolutePath" : "a",
"exportedSymbols" :
{
"c" :
[
11
]
},
"id" : 12,
"nodeType" : "SourceUnit",
"nodes" :
[
{
"baseContracts" : [],
"contractDependencies" : [],
"contractKind" : "contract",
"documentation" : null,
"fullyImplemented" : true,
"id" : 11,
"linearizedBaseContracts" :
[
11
],
"name" : "c",
"nodeType" : "ContractDefinition",
"nodes" :
[
{
"body" :
{
"id" : 9,
"nodeType" : "Block",
"src" : "33:20:1",
"statements" :
[
{
"assignments" :
[
7
],
"declarations" :
[
{
"constant" : false,
"id" : 7,
"name" : "x",
"nodeType" : "VariableDeclaration",
"overrides" : null,
"scope" : 9,
"src" : "35:15:1",
"stateVariable" : false,
"storageLocation" : "memory",
"typeDescriptions" :
{
"typeIdentifier" : "t_array$_t_uint256_$dyn_memory_ptr",
"typeString" : "uint256[]"
},
"typeName" :
{
"baseType" :
{
"id" : 5,
"name" : "uint",
"nodeType" : "ElementaryTypeName",
"src" : "35:4:1",
"typeDescriptions" :
{
"typeIdentifier" : "t_uint256",
"typeString" : "uint256"
}
},
"id" : 6,
"length" : null,
"nodeType" : "ArrayTypeName",
"src" : "35:6:1",
"typeDescriptions" :
{
"typeIdentifier" : "t_array$_t_uint256_$dyn_storage_ptr",
"typeString" : "uint256[]"
}
},
"value" : null,
"visibility" : "internal"
}
],
"id" : 8,
"initialValue" : null,
"nodeType" : "VariableDeclarationStatement",
"src" : "35:15:1"
}
]
},
"documentation" : null,
"id" : 10,
"implemented" : true,
"kind" : "function",
"modifiers" : [],
"name" : "f",
"nodeType" : "FunctionDefinition",
"overrides" : null,
"parameters" :
{
"id" : 1,
"nodeType" : "ParameterList",
"parameters" : [],
"src" : "23:2:1"
},
"returnParameters" :
{
"id" : 2,
"nodeType" : "ParameterList",
"parameters" : [],
"src" : "33:0:1"
},
"scope" : 11,
"src" : "13:40:1",
"stateMutability" : "nonpayable",
"superFunction" : null,
"visibility" : "public"
}
],
"scope" : 12,
"src" : "0:55:1"
}
],
"src" : "0:56:1"
}