Lines Matching refs:file_id
372 let file_id = self.files.len(); in add() localVariable
374 file_id in add()
378 pub fn get(&self, file_id: usize) -> Result<&SimpleFile<Name, Source>, Error> { in get()
379 self.files.get(file_id).ok_or(Error::FileMissing) in get()
392 fn name(&self, file_id: usize) -> Result<Name, Error> { in name()
393 Ok(self.get(file_id)?.name().clone()) in name()
396 fn source(&self, file_id: usize) -> Result<&str, Error> { in source()
397 Ok(self.get(file_id)?.source().as_ref()) in source()
400 fn line_index(&self, file_id: usize, byte_index: usize) -> Result<usize, Error> { in line_index()
401 self.get(file_id)?.line_index((), byte_index) in line_index()
404 fn line_range(&self, file_id: usize, line_index: usize) -> Result<Range<usize>, Error> { in line_range()
405 self.get(file_id)?.line_range((), line_index) in line_range()