mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Compact format for AST-Json with backwards compatibility
This commit is contained in:
@@ -377,7 +377,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
||||
{
|
||||
Json::Value sourceResult = Json::objectValue;
|
||||
sourceResult["id"] = sourceIndex++;
|
||||
sourceResult["legacyAST"] = ASTJsonConverter(m_compilerStack.ast(source), m_compilerStack.sourceIndices()).json();
|
||||
sourceResult["legacyAST"] = ASTJsonConverter(true, m_compilerStack.sourceIndices()).toJson(m_compilerStack.ast(source));
|
||||
output["sources"][source] = sourceResult;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user