mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Include source mapping identifier
This commit is contained in:
parent
115458c50e
commit
50bb24af5e
@ -135,6 +135,16 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
|||||||
|
|
||||||
Json::Value output = Json::objectValue;
|
Json::Value output = Json::objectValue;
|
||||||
|
|
||||||
|
output["sources"] = Json::objectValue;
|
||||||
|
unsigned sourceIndex = 0;
|
||||||
|
for (auto const& source: m_compilerStack.sourceNames())
|
||||||
|
{
|
||||||
|
Json::Value sourceResult = Json::objectValue;
|
||||||
|
sourceResult["id"] = sourceIndex++;
|
||||||
|
// @TODO add ast
|
||||||
|
output["sources"][source] = sourceResult;
|
||||||
|
}
|
||||||
|
|
||||||
Json::Value contractsOutput = Json::objectValue;
|
Json::Value contractsOutput = Json::objectValue;
|
||||||
for (string const& contractName: m_compilerStack.contractNames())
|
for (string const& contractName: m_compilerStack.contractNames())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user