mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
passed SourceLocations instead of nodes to the error reporting function
This commit is contained in:
1 parent
02d060ea5c
commit
ff421a9d65
5 files changed
+116
-109
No files matched your search
@@ -209,10 +209,10 @@ TypePointer ReferencesResolver::typeFor(TypeName const& _typeName)
|
||||
return _typeName.annotation().type = move(type);
|
||||
}
|
||||
|
||||
void ReferencesResolver::typeError(string const& _description)
|
||||
void ReferencesResolver::typeError(string const& _description, SourceLocation const& _location)
|
||||
{
|
||||
auto err = make_shared<Error>(Error::Type::TypeError);
|
||||
*err << errinfo_comment(_description);
|
||||
*err << errinfo_sourceLocation(_location) << errinfo_comment(_description);
|
||||
|
||||
m_errors.push_back(err);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user