From 566baad93991d2a6d841288a97746d81afa26e16 Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Fri, 14 Feb 2025 16:15:27 +0100 Subject: [PATCH] Allow getting the file path out of a SourceFile --- include/bolt/CST.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/bolt/CST.hpp b/include/bolt/CST.hpp index 01713a539..d4314946f 100644 --- a/include/bolt/CST.hpp +++ b/include/bolt/CST.hpp @@ -8,6 +8,7 @@ #include #include #include +#include #include "zen/config.hpp" #include "zen/range.hpp" @@ -3016,6 +3017,10 @@ public: return File; } + inline std::filesystem::path getFilePath() { + return File.getPath(); + } + Token* getFirstToken() const override; Token* getLastToken() const override;