(parts: string[], files: Entry)
| 94 | } |
| 95 | |
| 96 | function 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 | |
| 112 | function normalize(parts: string[]): string[] { |
| 113 | const result: string[] = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…