diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-21 20:34:26 +0800 |
---|---|---|
committer | djudjuu <julfaber@gmail.com> | 2017-05-17 17:14:33 +0800 |
commit | f2a6331ffbf0fb37bd9d05aed28a625fe366fa4c (patch) | |
tree | 0c794ec3114b0e6e2bc20fb7ab307c9568ade4ed /libsolidity/interface | |
parent | dea7b864e6bbd80b913abf44dc4748868c5d6975 (diff) | |
download | dexon-solidity-f2a6331ffbf0fb37bd9d05aed28a625fe366fa4c.tar dexon-solidity-f2a6331ffbf0fb37bd9d05aed28a625fe366fa4c.tar.gz dexon-solidity-f2a6331ffbf0fb37bd9d05aed28a625fe366fa4c.tar.bz2 dexon-solidity-f2a6331ffbf0fb37bd9d05aed28a625fe366fa4c.tar.lz dexon-solidity-f2a6331ffbf0fb37bd9d05aed28a625fe366fa4c.tar.xz 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.cpp | 1 |
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; } |