From 5aec120da345fc5e59cf3847d3947b34ee0a54a7 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 29 Mar 2017 14:59:00 +0100 Subject: Support the AST output --- libsolidity/interface/StandardCompiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index 82a4ce7b..d78a9487 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -141,7 +142,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input) { Json::Value sourceResult = Json::objectValue; sourceResult["id"] = sourceIndex++; - // @TODO add ast + sourceResult["ast"] = ASTJsonConverter(m_compilerStack.ast(source), m_compilerStack.sourceIndices()).json(); output["sources"][source] = sourceResult; } -- cgit