aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjudjuu <julfaber@gmail.com>2017-05-22 23:05:35 +0800
committerdjudjuu <julfaber@gmail.com>2017-05-24 20:48:32 +0800
commit1131c5035f37e3b4821dedb207e8d6acb5967a0d (patch)
treee608f91680782f18073c9c9ec0cdfe6cd85a4841
parent0f7a9e8149a52a689bf47ba5d26d051278e80a29 (diff)
downloaddexon-solidity-1131c5035f37e3b4821dedb207e8d6acb5967a0d.tar.gz
dexon-solidity-1131c5035f37e3b4821dedb207e8d6acb5967a0d.tar.zst
dexon-solidity-1131c5035f37e3b4821dedb207e8d6acb5967a0d.zip
make src-indices equal (#2286)
-rw-r--r--solc/CommandLineInterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp
index 5c0b6d83..d21fccaa 100644
--- a/solc/CommandLineInterface.cpp
+++ b/solc/CommandLineInterface.cpp
@@ -894,7 +894,7 @@ void CommandLineInterface::handleAst(string const& _argStr)
}
else
{
- ASTJsonConverter(legacyFormat).print(data, m_compiler->ast(sourceCode.first));
+ ASTJsonConverter(legacyFormat, m_compiler->sourceIndices()).print(data, m_compiler->ast(sourceCode.first));
postfix += "_json";
}
boost::filesystem::path path(sourceCode.first);
@@ -917,7 +917,7 @@ void CommandLineInterface::handleAst(string const& _argStr)
printer.print(cout);
}
else
- ASTJsonConverter(legacyFormat).print(cout, m_compiler->ast(sourceCode.first));
+ ASTJsonConverter(legacyFormat, m_compiler->sourceIndices()).print(cout, m_compiler->ast(sourceCode.first));
}
}
}