aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/StandardCompiler.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-05-22 20:33:46 +0800
committerGitHub <noreply@github.com>2017-05-22 20:33:46 +0800
commit8eead553aff1ec30c3d1b15ae9b2929b887ede49 (patch)
treea9eba765277360c579ee89ee78d9606c17cb9ffa /libsolidity/interface/StandardCompiler.cpp
parente3af064098edae79aa3bbfb2a96b43fa3479269d (diff)
parente82df073d15237455b1e53e35ef544aea72a69f9 (diff)
downloaddexon-solidity-8eead553aff1ec30c3d1b15ae9b2929b887ede49.tar.gz
dexon-solidity-8eead553aff1ec30c3d1b15ae9b2929b887ede49.tar.zst
dexon-solidity-8eead553aff1ec30c3d1b15ae9b2929b887ede49.zip
Merge pull request #1810 from ethereum/compactJson
Compact format for AST-Json.
Diffstat (limited to 'libsolidity/interface/StandardCompiler.cpp')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp
index 503be57b..d5dbaa46 100644
--- a/libsolidity/interface/StandardCompiler.cpp
+++ b/libsolidity/interface/StandardCompiler.cpp
@@ -377,7 +377,8 @@ 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["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;
}