mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add callstack to model report
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <memory>
|
||||
#include <libdevcore/Exceptions.h>
|
||||
#include <libdevcore/Assertions.h>
|
||||
#include <libdevcore/CommonData.h>
|
||||
#include <liblangutil/SourceLocation.h>
|
||||
|
||||
namespace langutil
|
||||
@@ -108,6 +109,11 @@ public:
|
||||
infos.emplace_back(_errMsg, _sourceLocation);
|
||||
return *this;
|
||||
}
|
||||
SecondarySourceLocation& append(SecondarySourceLocation&& _other)
|
||||
{
|
||||
infos += std::move(_other.infos);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Limits the number of secondary source locations to 32 and appends a notice to the
|
||||
/// error message.
|
||||
|
||||
Reference in New Issue
Block a user