(parts: string[])
| 110 | } |
| 111 | |
| 112 | function normalize(parts: string[]): string[] { |
| 113 | const result: string[] = []; |
| 114 | while (parts.length) { |
| 115 | const part = parts.shift()!; |
| 116 | switch (part) { |
| 117 | case '.': |
| 118 | break; |
| 119 | case '..': |
| 120 | result.pop(); |
| 121 | break; |
| 122 | default: |
| 123 | result.push(part); |
| 124 | } |
| 125 | } |
| 126 | return result; |
| 127 | } |
| 128 | |
| 129 | export class MockCompilerHost implements ts.CompilerHost { |
| 130 | constructor(private context: MockAotContext) {} |
searching dependent graphs…