mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12199 from ethereum/expose-parsingAndImporting
Expose "parsingAndImporting" setting to user
This commit is contained in:
@@ -0,0 +1 @@
|
||||
--pretty-json --json-indent 4
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"language": "Solidity",
|
||||
"sources": {
|
||||
"/project/../C.sol": {"content": "//SPDX-License-Identifier: GPL-2.0\npragma solidity >=0.0;\nimport \"../L.sol\";"},
|
||||
"/lib/L.sol": {"content": "//SPDX-License-Identifier: GPL-2.0\npragma solidity >=0.0;\n"}
|
||||
},
|
||||
"settings": {
|
||||
"stopAfter": "parsing",
|
||||
"remappings": [":/project/=/lib/"],
|
||||
"outputSelection": {"*": {"": ["ast"]}}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"sources":
|
||||
{
|
||||
"/lib/L.sol":
|
||||
{
|
||||
"ast":
|
||||
{
|
||||
"absolutePath": "/lib/L.sol",
|
||||
"id": 2,
|
||||
"license": "GPL-2.0",
|
||||
"nodeType": "SourceUnit",
|
||||
"nodes":
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"literals":
|
||||
[
|
||||
"solidity",
|
||||
">=",
|
||||
"0.0"
|
||||
],
|
||||
"nodeType": "PragmaDirective",
|
||||
"src": "35:22:0"
|
||||
}
|
||||
],
|
||||
"src": "35:23:0"
|
||||
},
|
||||
"id": 0
|
||||
},
|
||||
"/project/../C.sol":
|
||||
{
|
||||
"ast":
|
||||
{
|
||||
"absolutePath": "/project/../C.sol",
|
||||
"id": 5,
|
||||
"license": "GPL-2.0",
|
||||
"nodeType": "SourceUnit",
|
||||
"nodes":
|
||||
[
|
||||
{
|
||||
"id": 3,
|
||||
"literals":
|
||||
[
|
||||
"solidity",
|
||||
">=",
|
||||
"0.0"
|
||||
],
|
||||
"nodeType": "PragmaDirective",
|
||||
"src": "35:22:1"
|
||||
},
|
||||
{
|
||||
"absolutePath": "/lib/L.sol",
|
||||
"file": "../L.sol",
|
||||
"id": 4,
|
||||
"nameLocation": "-1:-1:-1",
|
||||
"nodeType": "ImportDirective",
|
||||
"src": "58:18:1",
|
||||
"symbolAliases": [],
|
||||
"unitAlias": ""
|
||||
}
|
||||
],
|
||||
"src": "35:41:1"
|
||||
},
|
||||
"id": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
"nodes":
|
||||
[
|
||||
{
|
||||
"absolutePath": "notexisting.sol",
|
||||
"file": "notexisting.sol",
|
||||
"id": 1,
|
||||
"nameLocation": "28:11:1",
|
||||
|
||||
Reference in New Issue
Block a user