mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
make src-indices equal (#2286)
This commit is contained in:
parent
0f7a9e8149
commit
1131c5035f
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user