make src-indices equal (#2286)

This commit is contained in:
djudjuu 2017-05-22 17:05:35 +02:00
parent 0f7a9e8149
commit 1131c5035f

View File

@ -894,7 +894,7 @@ void CommandLineInterface::handleAst(string const& _argStr)
} }
else else
{ {
ASTJsonConverter(legacyFormat).print(data, m_compiler->ast(sourceCode.first)); ASTJsonConverter(legacyFormat, m_compiler->sourceIndices()).print(data, m_compiler->ast(sourceCode.first));
postfix += "_json"; postfix += "_json";
} }
boost::filesystem::path path(sourceCode.first); boost::filesystem::path path(sourceCode.first);
@ -917,7 +917,7 @@ void CommandLineInterface::handleAst(string const& _argStr)
printer.print(cout); printer.print(cout);
} }
else else
ASTJsonConverter(legacyFormat).print(cout, m_compiler->ast(sourceCode.first)); ASTJsonConverter(legacyFormat, m_compiler->sourceIndices()).print(cout, m_compiler->ast(sourceCode.first));
} }
} }
} }