chore: move NO_LOCATION const to location_t

This commit is contained in:
TopchetoEU 2022-10-03 15:48:39 +03:00
parent df0e17d450
commit 044ad200e5

View File

@ -4,6 +4,8 @@
namespace ppc {
struct location_t {
static const location_t NONE;
std::size_t line;
std::size_t start;
std::size_t length;
@ -22,6 +24,4 @@ namespace ppc {
location_t(std::size_t line, std::size_t start, std::size_t code_start, std::size_t length);
location_t(std::string filename, std::size_t line, std::size_t start, std::size_t code_start, std::size_t length);
};
static const location_t NO_LOCATION = { };
}