From e7265af15f77abf60a899b3d53a59652b5ca71ea Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 15 Jul 2026 17:23:42 +0200 Subject: Track identifier positions for the diagnostics --- boot/driver.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot/driver.cc') diff --git a/boot/driver.cc b/boot/driver.cc index b51da32..8dc95f8 100644 --- a/boot/driver.cc +++ b/boot/driver.cc @@ -19,14 +19,14 @@ along with GCC; see the file COPYING3. If not see namespace elna::boot { - position make_position(const yy::location& location) + source_position make_position(const yy::location& location) { auto start_location = boot::location(static_cast(location.begin.line), static_cast(location.begin.column)); auto end_location = boot::location(static_cast(location.end.line), static_cast(location.end.column)); - return position(start_location, end_location); + return source_position(start_location, end_location); } syntax_error::syntax_error(const std::string& message, const yy::location& location) -- cgit v1.2.3