diff options
author | chriseth <chris@ethereum.org> | 2017-03-21 02:06:17 +0800 |
---|---|---|
committer | djudjuu <julfaber@gmail.com> | 2017-05-17 17:14:33 +0800 |
commit | dea7b864e6bbd80b913abf44dc4748868c5d6975 (patch) | |
tree | ebf81211d3f0a40fdbaf973e1913365942e5fe29 /solc/jsonCompiler.cpp | |
parent | 242e43188161d15d36d831652b03095690524c72 (diff) | |
download | dexon-solidity-dea7b864e6bbd80b913abf44dc4748868c5d6975.tar.gz dexon-solidity-dea7b864e6bbd80b913abf44dc4748868c5d6975.tar.zst dexon-solidity-dea7b864e6bbd80b913abf44dc4748868c5d6975.zip |
Compact format for AST-Json with backwards compatibility
Diffstat (limited to 'solc/jsonCompiler.cpp')
-rw-r--r-- | solc/jsonCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp index 42c25de0..2501c8e8 100644 --- a/solc/jsonCompiler.cpp +++ b/solc/jsonCompiler.cpp @@ -245,7 +245,7 @@ string compile(StringMap const& _sources, bool _optimize, CStyleReadFileCallback output["sourceList"].append(source); output["sources"] = Json::Value(Json::objectValue); for (auto const& source: compiler.sourceNames()) - output["sources"][source]["AST"] = ASTJsonConverter(compiler.ast(source), compiler.sourceIndices()).json(); + output["sources"][source]["AST"] = ASTJsonConverter(true, compiler.sourceIndices()).toJson(compiler.ast(source)); } catch (...) { |