Allow getting the file path out of a SourceFile
This commit is contained in:
parent
76bfa1c0e2
commit
566baad939
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue