aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-21 20:34:26 +0800
committerdjudjuu <julfaber@gmail.com>2017-05-17 17:14:33 +0800
commitf2a6331ffbf0fb37bd9d05aed28a625fe366fa4c (patch)
tree0c794ec3114b0e6e2bc20fb7ab307c9568ade4ed /libsolidity/interface
parentdea7b864e6bbd80b913abf44dc4748868c5d6975 (diff)
downloaddexon-solidity-f2a6331ffbf0fb37bd9d05aed28a625fe366fa4c.tar.gz
dexon-solidity-f2a6331ffbf0fb37bd9d05aed28a625fe366fa4c.tar.zst
dexon-solidity-f2a6331ffbf0fb37bd9d05aed28a625fe366fa4c.zip
Support the new AST in StandardCompiler
Diffstat (limited to 'libsolidity/interface')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp
index 4ca1fd09..0afa9ae1 100644
--- a/libsolidity/interface/StandardCompiler.cpp
+++ b/libsolidity/interface/StandardCompiler.cpp
@@ -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;
}