2021-04-10 17:33:37 +00:00
|
|
|
JSON AST (compact format):
|
|
|
|
|
|
|
|
|
|
|
|
======= ast_compact_json_with_base_path/c.sol =======
|
|
|
|
{
|
|
|
|
"absolutePath": "ast_compact_json_with_base_path/c.sol",
|
|
|
|
"exportedSymbols":
|
|
|
|
{
|
|
|
|
"C":
|
|
|
|
[
|
|
|
|
5
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"id": 6,
|
|
|
|
"license": "GPL-3.0",
|
|
|
|
"nodeType": "SourceUnit",
|
|
|
|
"nodes":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": 4,
|
|
|
|
"literals":
|
|
|
|
[
|
|
|
|
"solidity",
|
|
|
|
">=",
|
|
|
|
"0.0"
|
|
|
|
],
|
|
|
|
"nodeType": "PragmaDirective",
|
|
|
|
"src": "36:22:0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"abstract": false,
|
|
|
|
"baseContracts": [],
|
2021-09-28 09:05:52 +00:00
|
|
|
"canonicalName": "C",
|
2021-04-10 17:33:37 +00:00
|
|
|
"contractDependencies": [],
|
|
|
|
"contractKind": "contract",
|
|
|
|
"fullyImplemented": true,
|
|
|
|
"id": 5,
|
|
|
|
"linearizedBaseContracts":
|
|
|
|
[
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"name": "C",
|
|
|
|
"nameLocation": "69:1:0",
|
|
|
|
"nodeType": "ContractDefinition",
|
|
|
|
"nodes": [],
|
|
|
|
"scope": 6,
|
2021-04-15 07:59:59 +00:00
|
|
|
"src": "60:13:0",
|
2021-02-23 13:13:52 +00:00
|
|
|
"usedErrors": [],
|
|
|
|
"usedEvents": []
|
2021-04-10 17:33:37 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"src": "36:38:0"
|
|
|
|
}
|
|
|
|
======= ast_compact_json_with_base_path/input.sol =======
|
|
|
|
{
|
|
|
|
"absolutePath": "ast_compact_json_with_base_path/input.sol",
|
|
|
|
"exportedSymbols":
|
|
|
|
{
|
|
|
|
"C":
|
|
|
|
[
|
|
|
|
5
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"id": 3,
|
|
|
|
"license": "GPL-3.0",
|
|
|
|
"nodeType": "SourceUnit",
|
|
|
|
"nodes":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"literals":
|
|
|
|
[
|
|
|
|
"solidity",
|
|
|
|
">=",
|
|
|
|
"0.0"
|
|
|
|
],
|
|
|
|
"nodeType": "PragmaDirective",
|
|
|
|
"src": "36:22:1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"absolutePath": "ast_compact_json_with_base_path/c.sol",
|
|
|
|
"file": "./c.sol",
|
|
|
|
"id": 2,
|
|
|
|
"nameLocation": "-1:-1:-1",
|
|
|
|
"nodeType": "ImportDirective",
|
|
|
|
"scope": 3,
|
|
|
|
"sourceUnit": 6,
|
|
|
|
"src": "60:17:1",
|
|
|
|
"symbolAliases": [],
|
|
|
|
"unitAlias": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"src": "36:42:1"
|
|
|
|
}
|