mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Support the new AST in StandardCompiler
This commit is contained in:
parent
dea7b864e6
commit
f2a6331ffb
@ -377,6 +377,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
||||
{
|
||||
Json::Value sourceResult = Json::objectValue;
|
||||
sourceResult["id"] = sourceIndex++;
|
||||
sourceResult["ast"] = ASTJsonConverter(false, m_compilerStack.sourceIndices()).toJson(m_compilerStack.ast(source));
|
||||
sourceResult["legacyAST"] = ASTJsonConverter(true, m_compilerStack.sourceIndices()).toJson(m_compilerStack.ast(source));
|
||||
output["sources"][source] = sourceResult;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user