mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Print code snippets next to source locations in IR output
This commit is contained in:
@@ -314,11 +314,11 @@ AssemblyStack::assembleEVMWithDeployed(optional<string_view> _deployName) const
|
||||
return {make_shared<evmasm::Assembly>(assembly), {}};
|
||||
}
|
||||
|
||||
string AssemblyStack::print() const
|
||||
string AssemblyStack::print(CharStreamProvider const* _soliditySourceProvider) const
|
||||
{
|
||||
yulAssert(m_parserResult, "");
|
||||
yulAssert(m_parserResult->code, "");
|
||||
return m_parserResult->toString(&languageToDialect(m_language, m_evmVersion)) + "\n";
|
||||
return m_parserResult->toString(&languageToDialect(m_language, m_evmVersion), _soliditySourceProvider) + "\n";
|
||||
}
|
||||
|
||||
shared_ptr<Object> AssemblyStack::parserResult() const
|
||||
|
||||
Reference in New Issue
Block a user