8#ifndef SEN_CORE_LANG_ERROR_REPORTER_H
9#define SEN_CORE_LANG_ERROR_REPORTER_H
37 const std::string& message,
38 std::size_t width = 0U,
39 bool isWarning =
false);
Utility class for reporting errors in the source code.
Definition error_reporter.h:26
std::function< void(const CodeLocation &, const std::string &, std::size_t, bool isWarning)> ReportFunc
A function that reports the error to some sink.
Definition error_reporter.h:29
static void report(const CodeLocation &loc, const std::string &message, std::size_t width=0U, bool isWarning=false)
Reports an error using the defined function.
Location of a character in a program.
Definition code_location.h:21
Definition code_location.h:14