solidity/test/libsolidity/ASTJSON/documentation_parseOnly.json

206 lines
4.7 KiB
JSON
Raw Normal View History

2020-07-08 20:08:50 +00:00
[
{
"absolutePath": "a",
"id": 3,
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation":
{
"id": 1,
"nodeType": "StructuredDocumentation",
"src": "0:27:1",
"text": "This contract is empty"
},
"id": 2,
"name": "C",
2021-02-10 17:40:05 +00:00
"nameLocation": "37:1:1",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes": [],
2021-04-15 07:59:59 +00:00
"src": "28:13:1",
"usedErrors": []
2020-07-08 20:08:50 +00:00
}
],
"src": "28:14:1"
},
{
"absolutePath": "b",
"id": 6,
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation":
{
"id": 4,
"nodeType": "StructuredDocumentation",
"src": "0:61:2",
"text": "This contract is empty\nand has a line-breaking comment."
},
"id": 5,
"name": "C",
2021-02-10 17:40:05 +00:00
"nameLocation": "71:1:2",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes": [],
2021-04-15 07:59:59 +00:00
"src": "62:13:2",
"usedErrors": []
2020-07-08 20:08:50 +00:00
}
],
"src": "62:14:2"
},
{
"absolutePath": "c",
"id": 24,
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"id": 23,
"name": "C",
2021-02-10 17:40:05 +00:00
"nameLocation": "9:1:3",
2020-07-08 20:08:50 +00:00
"nodeType": "ContractDefinition",
"nodes":
[
{
"constant": false,
"id": 9,
"mutability": "mutable",
"name": "state",
2021-02-10 17:40:05 +00:00
"nameLocation": "60:5:3",
2020-07-08 20:08:50 +00:00
"nodeType": "VariableDeclaration",
"src": "48:17:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {},
"typeName":
{
"id": 8,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "48:4:3",
"typeDescriptions": {}
},
"visibility": "public"
},
{
"anonymous": false,
"documentation":
{
"id": 10,
"nodeType": "StructuredDocumentation",
"src": "69:26:3",
"text": "Some comment on Evt."
},
"id": 12,
"name": "Evt",
2021-02-10 17:40:05 +00:00
"nameLocation": "102:3:3",
2020-07-08 20:08:50 +00:00
"nodeType": "EventDefinition",
"parameters":
{
"id": 11,
"nodeType": "ParameterList",
"parameters": [],
"src": "105:2:3"
},
"src": "96:12:3"
},
{
"body":
{
"id": 16,
"nodeType": "Block",
"src": "153:6:3",
"statements":
[
{
"id": 15,
"nodeType": "PlaceholderStatement",
"src": "155:1:3"
}
]
},
"documentation":
{
"id": 13,
"nodeType": "StructuredDocumentation",
"src": "111:26:3",
"text": "Some comment on mod."
},
"id": 17,
"name": "mod",
2021-02-10 17:40:05 +00:00
"nameLocation": "147:3:3",
2020-07-08 20:08:50 +00:00
"nodeType": "ModifierDefinition",
"parameters":
{
"id": 14,
"nodeType": "ParameterList",
"parameters": [],
"src": "150:2:3"
},
"src": "138:21:3",
"virtual": false,
"visibility": "internal"
},
{
"body":
{
"id": 21,
"nodeType": "Block",
"src": "209:2:3",
"statements": []
},
"documentation":
{
"id": 18,
"nodeType": "StructuredDocumentation",
"src": "162:25:3",
"text": "Some comment on fn."
},
"id": 22,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "fn",
2021-02-10 17:40:05 +00:00
"nameLocation": "197:2:3",
2020-07-08 20:08:50 +00:00
"nodeType": "FunctionDefinition",
"parameters":
{
"id": 19,
"nodeType": "ParameterList",
"parameters": [],
"src": "199:2:3"
},
"returnParameters":
{
"id": 20,
"nodeType": "ParameterList",
"parameters": [],
"src": "209:0:3"
},
"src": "188:23:3",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
}
],
2021-04-15 07:59:59 +00:00
"src": "0:213:3",
"usedErrors": []
2020-07-08 20:08:50 +00:00
}
],
"src": "0:214:3"
}
]