MCPcopy Index your code
hub / github.com/angular/angular / getEntry

Method getEntry

packages/compiler-cli/test/mocks.ts:64–72  ·  view source on GitHub ↗
(fileName: string | string[])

Source from the content-addressed store, hash-verified

62 }
63
64 getEntry(fileName: string | string[]): Entry | undefined {
65 let parts = typeof fileName === 'string' ? fileName.split('/') : fileName;
66 if (parts[0]) {
67 parts = this.currentDirectory.split('/').concat(parts);
68 }
69 parts.shift();
70 parts = normalize(parts);
71 return first(this.files, (files) => getEntryFromFiles(parts, files));
72 }
73
74 getDirectories(path: string): string[] {
75 const dir = this.getEntry(path);

Callers 5

fileExistsMethod · 0.95
directoryExistsMethod · 0.95
readFileMethod · 0.95
writeFileMethod · 0.95
getDirectoriesMethod · 0.95

Calls 3

firstFunction · 0.85
getEntryFromFilesFunction · 0.85
normalizeFunction · 0.70

Tested by

no test coverage detected