mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Document that the ReadFileCallback should not emit exceptions
This commit is contained in:
parent
b7951be44a
commit
c82a203206
@ -79,7 +79,8 @@ class CompilerStack: boost::noncopyable
|
||||
{
|
||||
public:
|
||||
/// Creates a new compiler stack.
|
||||
/// @param _readFile callback to used to read files for import statements. Should return
|
||||
/// @param _readFile callback to used to read files for import statements. Must return
|
||||
/// and must not emit exceptions.
|
||||
explicit CompilerStack(ReadFile::Callback const& _readFile = ReadFile::Callback());
|
||||
|
||||
/// Sets path remappings in the format "context:prefix=target"
|
||||
|
@ -38,7 +38,8 @@ class StandardCompiler: boost::noncopyable
|
||||
{
|
||||
public:
|
||||
/// Creates a new StandardCompiler.
|
||||
/// @param _readFile callback to used to read files for import statements. Should return
|
||||
/// @param _readFile callback to used to read files for import statements. Must return
|
||||
/// and must not emit exceptions.
|
||||
StandardCompiler(ReadFile::Callback const& _readFile = ReadFile::Callback())
|
||||
: m_compilerStack(_readFile), m_readFile(_readFile)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user