18 namespace fs = std::filesystem;
22 std::string directory;
27 std::string_view source;
29 std::vector<size_t> line_offsets;
31 void build_line_offsets();
37 const char *
get_path()
const {
return directory.c_str(); }
38 size_t get_size()
const {
return source.size(); }
const char * get_basename() const
const char * get_path() const
SourceView(const fs::path &ospath)
struct lifetime_t lifetime_t
a language driver support capabilities