solidity/test/libsolidity/ASTJSON/documentation_legacy.json

365 lines
7.2 KiB
JSON
Raw Normal View History

[
{
"attributes":
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
2
]
}
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
2
],
"name": "C",
"nodes":
[
null
],
"scope": 3
},
"children":
[
{
"attributes":
{
"text": "This contract is empty"
},
"id": 1,
"name": "StructuredDocumentation",
"src": "0:27:1"
}
],
"id": 2,
"name": "ContractDefinition",
"src": "28:13:1"
}
],
"id": 3,
"name": "SourceUnit",
"src": "28:14:1"
},
{
"attributes":
{
"absolutePath": "b",
"exportedSymbols":
{
"C":
[
5
]
}
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
5
],
"name": "C",
"nodes":
[
null
],
"scope": 6
},
"children":
[
{
"attributes":
{
"text": "This contract is empty\nand has a line-breaking comment."
},
"id": 4,
"name": "StructuredDocumentation",
"src": "0:61:2"
}
],
"id": 5,
"name": "ContractDefinition",
"src": "62:13:2"
}
],
"id": 6,
"name": "SourceUnit",
"src": "62:14:2"
},
2018-08-03 17:41:35 +00:00
{
"attributes":
{
"absolutePath": "c",
"exportedSymbols":
{
"C":
[
23
]
2020-04-27 08:28:54 +00:00
}
},
"children":
[
{
"attributes":
{
2019-10-23 20:10:12 +00:00
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
23
],
"name": "C",
"scope": 24
},
"children":
[
{
"attributes":
{
"constant": false,
"functionSelector": "c19d93fb",
"mutability": "mutable",
"name": "state",
"scope": 23,
"stateVariable": true,
"storageLocation": "default",
"type": "uint256",
"visibility": "public"
},
"children":
[
{
"attributes":
{
"name": "uint",
"type": "uint256"
},
"id": 8,
"name": "ElementaryTypeName",
"src": "48:4:3"
},
{
"attributes":
{
"text": "Some comment on state var."
},
"id": 7,
"name": "StructuredDocumentation",
"src": "15:32:3"
}
],
"id": 9,
"name": "VariableDeclaration",
"src": "48:17:3"
},
{
"attributes":
{
"anonymous": false,
"name": "Evt"
},
"children":
[
{
"attributes":
{
"text": "Some comment on Evt."
},
"id": 10,
"name": "StructuredDocumentation",
"src": "69:26:3"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 11,
"name": "ParameterList",
"src": "105:2:3"
}
],
"id": 12,
"name": "EventDefinition",
"src": "96:12:3"
},
{
"attributes":
{
"name": "mod",
"virtual": false,
"visibility": "internal"
},
"children":
[
{
"attributes":
{
"text": "Some comment on mod."
},
"id": 13,
"name": "StructuredDocumentation",
"src": "111:26:3"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 14,
"name": "ParameterList",
"src": "150:2:3"
},
{
"children":
[
{
"id": 15,
"name": "PlaceholderStatement",
"src": "155:1:3"
}
],
"id": 16,
"name": "Block",
"src": "153:6:3"
}
],
"id": 17,
"name": "ModifierDefinition",
"src": "138:21:3"
},
{
"attributes":
{
"functionSelector": "a4a2c40b",
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers":
[
null
],
"name": "fn",
"scope": 23,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
"children":
[
{
"attributes":
{
"text": "Some comment on fn."
},
"id": 18,
"name": "StructuredDocumentation",
"src": "162:25:3"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 19,
"name": "ParameterList",
"src": "199:2:3"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 20,
"name": "ParameterList",
"src": "209:0:3"
},
{
"attributes":
{
"statements":
[
null
]
},
"children": [],
"id": 21,
"name": "Block",
"src": "209:2:3"
}
],
"id": 22,
"name": "FunctionDefinition",
"src": "188:23:3"
}
],
"id": 23,
"name": "ContractDefinition",
"src": "0:213:3"
}
],
"id": 24,
"name": "SourceUnit",
"src": "0:214:3"
2018-08-03 17:41:35 +00:00
}
]