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

Function normalize

packages/compiler-cli/test/mocks.ts:112–127  ·  view source on GitHub ↗
(parts: string[])

Source from the content-addressed store, hash-verified

110}
111
112function 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
129export class MockCompilerHost implements ts.CompilerHost {
130 constructor(private context: MockAotContext) {}

Callers 15

getEntryMethod · 0.70
getProjectTsConfigPathsFunction · 0.50
isRootMethod · 0.50
normalizeMethod · 0.50
resolveMethod · 0.50
writeFileFunction · 0.50
writeFileFunction · 0.50
writeFileFunction · 0.50
writeFileFunction · 0.50
writeFileFunction · 0.50
writeFileFunction · 0.50
writeFileFunction · 0.50

Calls 2

popMethod · 0.80
pushMethod · 0.45

Tested by 1

writeFileFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…