Lines Matching defs:file
3 // found in the LICENSE file.
19 const std::string& SourceFileMap::PathFromV8Root(SourceId file) {
20 CHECK(file.IsValid());
21 return Get().sources_[file.id_];
25 std::string SourceFileMap::AbsolutePath(SourceId file) {
26 const std::string& root_path = PathFromV8Root(file);
27 if (StringStartsWith(root_path, "file://")) return root_path;
28 return Get().v8_root_ + "/" + PathFromV8Root(file);
32 std::string SourceFileMap::PathFromV8RootWithoutExtension(SourceId file) {
33 std::string path_from_root = PathFromV8Root(file);
35 Error("Not a .tq file: ", path_from_root).Throw();
70 const std::string file = Get().v8_root_ + "/" + path;
71 std::ifstream stream(file);