This repository has been archived on 2023-09-10. You can view files and clone it, but cannot push or open issues/pull-requests.
joko/lib/Loc.hpp

26 lines
430 B
C++

#ifndef jk_LOC_HPP
#define jk_LOC_HPP
#include "commons.hpp"
namespace jk
{
class Loc
{
public:
explicit Loc(std::filesystem::path path, int line, int column);
virtual ~Loc();
std::filesystem::path path() const { return m_path; }
int line() const { return m_line; }
int column() const { return m_column; }
private:
std::filesystem::path m_path;
int m_line;
int m_column;
};
}
#endif