Allow getting the file path out of a SourceFile

This commit is contained in:
Sam Vervaeck 2025-02-14 16:15:27 +01:00
parent 76bfa1c0e2
commit 566baad939
Signed by: samvv
SSH key fingerprint: SHA256:dIg0ywU1OP+ZYifrYxy8c5esO72cIKB+4/9wkZj1VaY

View file

@ -8,6 +8,7 @@
#include <variant>
#include <vector>
#include <optional>
#include <filesystem>
#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;