MCPcopy Create free account
hub / github.com/angular/angular / getContents

Method getContents

packages/compiler-cli/test/ngtsc/env.ts:149–155  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

147 }
148
149 getContents(fileName: string): string {
150 const content = this.getRawContents(fileName);
151 if (isNgpTestMode() && (fileName.endsWith('.js') || fileName.endsWith('.d.ts'))) {
152 return normalizeNgpOutputFile(content);
153 }
154 return content;
155 }
156
157 /**
158 * The contents of an emitted file exactly as written, without the normalization `getContents`

Calls 3

getRawContentsMethod · 0.95
isNgpTestModeFunction · 0.90
normalizeNgpOutputFileFunction · 0.90

Tested by

no test coverage detected