mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Enabling --combined-json to output to file
This commit is contained in:
parent
1a9c503e93
commit
487ade1635
@ -910,7 +910,11 @@ void CommandLineInterface::handleCombinedJSON()
|
||||
output[g_strSources][sourceCode.first]["AST"] = converter.toJson(m_compiler->ast(sourceCode.first));
|
||||
}
|
||||
}
|
||||
cout << dev::jsonCompactPrint(output) << endl;
|
||||
|
||||
if (m_args.count(g_argOutputDir))
|
||||
createJson("combined", output);
|
||||
else
|
||||
cout << dev::jsonCompactPrint(output) << endl;
|
||||
}
|
||||
|
||||
void CommandLineInterface::handleAst(string const& _argStr)
|
||||
|
Loading…
Reference in New Issue
Block a user