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

Method readFile

packages/compiler-cli/test/mocks.ts:35–41  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

33 }
34
35 readFile(fileName: string): string {
36 const data = this.getEntry(fileName);
37 if (typeof data === 'string') {
38 return data;
39 }
40 return undefined!;
41 }
42
43 readResource(fileName: string): Promise<string> {
44 const result = this.readFile(fileName);

Callers 1

readResourceMethod · 0.95

Calls 1

getEntryMethod · 0.95

Tested by

no test coverage detected