Prepare SourceDatabase API for lazy file loading
This commit is contained in:
@@ -57,7 +57,7 @@ impl SourceRoot {
|
||||
pub fn walk(&self) -> impl Iterator<Item = FileId> + '_ {
|
||||
self.files.values().copied()
|
||||
}
|
||||
pub(crate) fn file_by_relative_path(&self, path: &RelativePath) -> Option<FileId> {
|
||||
pub fn file_by_relative_path(&self, path: &RelativePath) -> Option<FileId> {
|
||||
self.files.get(path).copied()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user