Home
last modified time | relevance | path

Searched refs:fileOrDirectory (Results 1 – 12 of 12) sorted by relevance

/third_party/typescript/src/harness/
DvirtualFileSystemWithWatch.ts607 …private addFileOrFolderInFolder(folder: FsFolder, fileOrDirectory: FsFile | FsFolder | FsSymLink, …
608 if (!this.fs.has(fileOrDirectory.path)) {
609 …insertSorted(folder.entries, fileOrDirectory, (a, b) => compareStringsCaseSensitive(getBaseFileNam…
612 this.fs.set(fileOrDirectory.path, fileOrDirectory);
613 this.setInode(fileOrDirectory.path);
620 …this.invokeFileAndFsWatches(fileOrDirectory.fullPath, FileWatcherEventKind.Created, fileOrDirector…
621 …nvokeFileAndFsWatches(folder.fullPath, FileWatcherEventKind.Changed, fileOrDirectory.modifiedTime,…
625 …private removeFileOrFolder(fileOrDirectory: FsFile | FsFolder | FsSymLink, isRenaming?: boolean, o…
626 const basePath = getDirectoryPath(fileOrDirectory.path);
628 if (basePath !== fileOrDirectory.path) {
[all …]
/third_party/typescript/src/compiler/
DwatchUtilities.ts32 …addOrDeleteFileOrDirectory(fileOrDirectory: string, fileOrDirectoryPath: Path): FileAndDirectoryEx…
230 function addOrDeleteFileOrDirectory(fileOrDirectory: string, fileOrDirectoryPath: Path) {
253 const baseName = getBaseNameOfFileName(fileOrDirectory);
481 fileOrDirectory: string; property
494 watchedDirPath, fileOrDirectory, fileOrDirectoryPath,
501 writeLog(`Project: ${configFileName} Detected ignored path: ${fileOrDirectory}`);
510 …if (hasExtension(fileOrDirectoryPath) && !isSupportedSourceFileName(fileOrDirectory, options, extr…
511 …oject: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
515 …if (isExcludedFile(fileOrDirectory, options.configFile!.configFileSpecs!, getNormalizedAbsolutePat…
516 writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`);
[all …]
Dsys.ts766 …export type FsWatch = (fileOrDirectory: string, entryKind: FileSystemEntryKind, callback: FsWatchC…
772 …export type FsWatchWorker = (fileOrDirectory: string, recursive: boolean, callback: FsWatchCallbac…
1070 fileOrDirectory: string,
1080 fileOrDirectory,
1082 …cb => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInt…
1087 fileOrDirectory: string,
1097 …lastDirectoryPartWithDirectorySeparator = fileOrDirectory.substring(fileOrDirectory.lastIndexOf(di…
1101 … let watcher: FileWatcher | undefined = !fileSystemEntryExists(fileOrDirectory, entryKind) ?
1117 …sysLog(`sysLog:: ${fileOrDirectory}:: Changing watcher to ${createWatcher === watchPresentFileSyst…
1129 sysLog(`sysLog:: ${fileOrDirectory}:: Defaulting to watchFile`);
[all …]
DwatchPublic.ts905 fileOrDirectory => {
908 const fileOrDirectoryPath = toPath(fileOrDirectory);
912 … cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);
918 fileOrDirectory,
1003 fileOrDirectory => {
1004 const fileOrDirectoryPath = toPath(fileOrDirectory);
1007 … cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);
1015 fileOrDirectory,
DresolutionCache.ts885 … return resolutionHost.watchDirectoryOfFailedLookupLocation(directory, fileOrDirectory => {
886 const fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory);
889 … cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);
1067 return resolutionHost.watchTypeRootsDirectory(typeRoot, fileOrDirectory => {
1068 const fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory);
1071 … cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);
DtsbuildPublic.ts2162 fileOrDirectory => {
2165 fileOrDirectory,
2166 fileOrDirectoryPath: toPath(state, fileOrDirectory),
Dprogram.ts4250 … function fileOrDirectoryExistsUsingSource(fileOrDirectory: string, isFile: boolean): boolean {
4255 const result = fileOrDirectoryExistsUsingSource(fileOrDirectory);
4261 const fileOrDirectoryPath = host.toPath(fileOrDirectory);
4274 …const absolutePath = getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirect…
/third_party/typescript/src/executeCommandLine/
DexecuteCommandLine.ts513 const fileOrDirectory = normalizePath(commandLine.options.project); constant
514 … if (!fileOrDirectory /* current directory "." */ || sys.directoryExists(fileOrDirectory)) {
515 configFileName = combinePaths(fileOrDirectory, "tsconfig.json");
522 configFileName = fileOrDirectory;
/third_party/typescript/src/server/
DeditorServices.ts1318 fileOrDirectory => {
1319 const fileOrDirectoryPath = this.toPath(fileOrDirectory);
1320 …ult = config.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirect…
1324 … this.logger.info(`Config: ${configFileName} Detected new package.json: ${fileOrDirectory}`);
1331 fileOrDirectory,
2663 fileOrDirectory => {
2664 const fileOrDirectoryPath = removeIgnoredPath(this.toPath(fileOrDirectory));
/third_party/typescript/src/services/
Dutilities.ts3222 export function isInsideNodeModules(fileOrDirectory: string): boolean {
3223 return contains(getPathComponents(fileOrDirectory), "node_modules");
/third_party/typescript/lib/
Dtsc.js4352 …function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbac… argument
4353 … useCaseSensitiveFileNames, fileOrDirectory, callback, function (cb) { return fsWatchHandlingExist…
4355 …function fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, callback, recursive, fallbackP… argument
4359 …lastDirectoryPartWithDirectorySeparator = fileOrDirectory.substring(fileOrDirectory.lastIndexOf(ts…
4362 var watcher = !fileSystemEntryExists(fileOrDirectory, entryKind) ?
4375 …sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing watcher to ").concat(createWatcher === wat…
4382 sysLog("sysLog:: ".concat(fileOrDirectory, ":: Defaulting to watchFile"));
4386 var presentWatcher = fsWatchWorker(fileOrDirectory, recursive, inodeWatching ?
4397 sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing to watchFile"));
4411 … var modifiedTime = getModifiedTime(fileOrDirectory) || ts.missingFileModifiedTime;
[all …]
DtypingsInstaller.js6898 …function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbac… argument
6899 … useCaseSensitiveFileNames, fileOrDirectory, callback, function (cb) { return fsWatchHandlingExist…
6901 …function fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, callback, recursive, fallbackP… argument
6905 …lastDirectoryPartWithDirectorySeparator = fileOrDirectory.substring(fileOrDirectory.lastIndexOf(ts…
6909 var watcher = !fileSystemEntryExists(fileOrDirectory, entryKind) ?
6924 …sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing watcher to ").concat(createWatcher === wat…
6935 sysLog("sysLog:: ".concat(fileOrDirectory, ":: Defaulting to watchFile"));
6939 var presentWatcher = fsWatchWorker(fileOrDirectory, recursive, inodeWatching ?
6954 sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing to watchFile"));
6975 … var modifiedTime = getModifiedTime(fileOrDirectory) || ts.missingFileModifiedTime;
[all …]