aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/StandardCompiler.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-03-21 02:06:17 +0800
committerdjudjuu <julfaber@gmail.com>2017-05-17 17:14:33 +0800
commitdea7b864e6bbd80b913abf44dc4748868c5d6975 (patch)
treeebf81211d3f0a40fdbaf973e1913365942e5fe29 /libsolidity/interface/StandardCompiler.cpp
parent242e43188161d15d36d831652b03095690524c72 (diff)
downloaddexon-solidity-dea7b864e6bbd80b913abf44dc4748868c5d6975.tar.gz
dexon-solidity-dea7b864e6bbd80b913abf44dc4748868c5d6975.tar.zst
dexon-solidity-dea7b864e6bbd80b913abf44dc4748868c5d6975.zip
Compact format for AST-Json with backwards compatibility
Diffstat (limited to 'libsolidity/interface/StandardCompiler.cpp')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp
index 223cc15d..4ca1fd09 100644
--- a/libsolidity/interface/StandardCompiler.cpp
+++ b/libsolidity/interface/StandardCompiler.cpp
@@ -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;
}