diff options
author | chriseth <chris@ethereum.org> | 2017-05-22 20:33:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-22 20:33:46 +0800 |
commit | 8eead553aff1ec30c3d1b15ae9b2929b887ede49 (patch) | |
tree | a9eba765277360c579ee89ee78d9606c17cb9ffa /libsolidity/interface/StandardCompiler.cpp | |
parent | e3af064098edae79aa3bbfb2a96b43fa3479269d (diff) | |
parent | e82df073d15237455b1e53e35ef544aea72a69f9 (diff) | |
download | dexon-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.cpp | 3 |
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; } |