20 lines
343 B
C++
20 lines
343 B
C++
#include "elna/source/result.hpp"
|
|
|
|
namespace elna::source
|
|
{
|
|
error::error(const position position)
|
|
: m_position(position)
|
|
{
|
|
}
|
|
|
|
std::size_t error::line() const noexcept
|
|
{
|
|
return this->m_position.line;
|
|
}
|
|
|
|
std::size_t error::column() const noexcept
|
|
{
|
|
return this->m_position.column;
|
|
}
|
|
}
|