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

Function fileExists

adev/src/app/editor/code-editor/workers/utils/environment.ts:35–37  ·  view source on GitHub ↗
(env: VirtualTypeScriptEnvironment, fileName: string)

Source from the content-addressed store, hash-verified

33}
34
35export function fileExists(env: VirtualTypeScriptEnvironment, fileName: string) {
36 return env.sys.fileExists(normalizeFileName(fileName));
37}
38
39export function normalizeFileContent(content: string) {
40 return content || EMPTY_FILE_CONTENT;

Callers 2

runDiagnosticsFunction · 0.90
updateOrCreateFileFunction · 0.70

Calls 2

normalizeFileNameFunction · 0.85
fileExistsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…