Translate position to a GCC location
This commit is contained in:
@ -7,23 +7,23 @@ namespace elna
|
||||
{
|
||||
namespace source
|
||||
{
|
||||
error::error(const char *path, const position position)
|
||||
: m_position(position), path(path)
|
||||
error::error(const char *path, const struct position position)
|
||||
: position(position), path(path)
|
||||
{
|
||||
}
|
||||
|
||||
std::size_t error::line() const noexcept
|
||||
{
|
||||
return this->m_position.line;
|
||||
return this->position.line;
|
||||
}
|
||||
|
||||
std::size_t error::column() const noexcept
|
||||
{
|
||||
return this->m_position.column;
|
||||
return this->position.column;
|
||||
}
|
||||
|
||||
name_collision::name_collision(const std::string& name, const char *path,
|
||||
const position current, const position previous)
|
||||
const struct position current, const struct position previous)
|
||||
: error(path, current), name(name), previous(previous)
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user