MCPcopy
hub / github.com/meteor/meteor / addFileByRealPath

Method addFileByRealPath

tools/isobuild/import-scanner.ts:500–512  ·  view source on GitHub ↗
(file: File, realPath: string)

Source from the content-addressed store, hash-verified

498 }
499
500 private addFileByRealPath(file: File, realPath: string) {
501 if (! has(this.realPathToFiles, realPath)) {
502 this.realPathToFiles[realPath] = [];
503 }
504
505 const files = this.realPathToFiles[realPath];
506
507 if (files.indexOf(file) < 0) {
508 files.push(file);
509 }
510
511 return file;
512 }
513
514 private getInfoByRealPath(realPath: string): RawFile | null {
515 const files = this.realPathToFiles[realPath];

Callers 2

addInputFilesMethod · 0.95
readDepFileMethod · 0.95

Calls 2

hasFunction · 0.85
indexOfMethod · 0.80

Tested by

no test coverage detected