Add ErrorReporter::fatalTypeError() with secondary location

This commit is contained in:
Mathias Baumann
2019-03-06 11:13:01 +01:00
parent b2262d67f0
commit 8d747ad47b
2 changed files with 22 additions and 0 deletions
+7
View File
@@ -104,6 +104,7 @@ public:
}
void fatalTypeError(SourceLocation const& _location, std::string const& _description);
void fatalTypeError(SourceLocation const& _location, SecondarySourceLocation const& _secondLocation, std::string const& _description);
void docstringParsingError(std::string const& _description);
@@ -123,6 +124,12 @@ private:
SecondarySourceLocation const& _secondaryLocation,
std::string const& _description = std::string());
void fatalError(
Error::Type _type,
SourceLocation const& _location,
SecondarySourceLocation const& _secondaryLocation,
std::string const& _description = std::string());
void fatalError(Error::Type _type,
SourceLocation const& _location = SourceLocation(),
std::string const& _description = std::string());