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

Function getEntryFromFiles

packages/compiler-cli/test/mocks.ts:96–110  ·  view source on GitHub ↗
(parts: string[], files: Entry)

Source from the content-addressed store, hash-verified

94}
95
96function getEntryFromFiles(parts: string[], files: Entry) {
97 let current = files;
98 while (parts.length) {
99 const part = parts.shift()!;
100 if (typeof current === 'string') {
101 return undefined;
102 }
103 const next = (<Directory>current)[part];
104 if (next === undefined) {
105 return undefined;
106 }
107 current = next;
108 }
109 return current;
110}
111
112function normalize(parts: string[]): string[] {
113 const result: string[] = [];

Callers 1

getEntryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…