Lines Matching defs:file

151 		LocatableFile* file = _GetFile(directoryPath, name);
152 if (file == NULL)
155 // try to auto-locate the file
156 if (LocatableDirectory* directory = file->Parent()) {
160 file->GetPath(path);
161 _LocateEntry(file, path, true, true);
166 _LocateEntryInParentDir(file, locatedDirectoryPath, true);
170 return file;
241 LocatableFile* file = dynamic_cast<LocatableFile*>(entry);
242 if (file == NULL)
298 // if already known return the file
301 LocatableFile* file = dynamic_cast<LocatableFile*>(entry);
302 if (file == NULL)
305 if (file->AcquireReference() == 0)
306 fEntries.Remove(file);
308 return file;
311 // no such file yet -- create it
316 LocatableFile* file = new(std::nothrow) LocatableFile(this, directory,
318 if (file == NULL) {
323 directory->AddEntry(file);
325 fEntries.Insert(file);
327 return file;
489 SourceFile* file;
496 file(NULL)
547 fLock("file manager"),
595 // create source file table
639 LocatableFile* file = fSourceDomain->GetFile(directory, relativePath);
641 return file;
649 LocatableFile* file = fSourceDomain->GetFile(path);
651 return file;
681 FileManager::LoadSourceFile(LocatableFile* file, SourceFile*& _sourceFile)
688 file->GetPath(originalPath);
689 if (!file->GetLocatedPath(path)) {
690 // see if this is a file we have a lazy mapping for.
691 if (!_LocateFileIfMapped(originalPath, file)
692 || !file->GetLocatedPath(path)) {
697 // we might already know the source file
700 entry->file->AcquireReference();
701 _sourceFile = entry->file;
710 // load the file
718 entry->file = sourceFile;
777 if (entry->file->CountReferences() == 0) {
799 LocatableFile* file)
806 && file->State() != LOCATABLE_ENTRY_LOCATED_EXPLICITLY
807 && file->State() != LOCATABLE_ENTRY_LOCATED_IMPLICITLY) {