MCPcopy Index your code
hub / github.com/microsoft/typescript-go / FileExists

Method FileExists

internal/compiler/program.go:122–124  ·  view source on GitHub ↗

FileExists implements checker.Program.

(path string)

Source from the content-addressed store, hash-verified

120
121// FileExists implements checker.Program.
122func (p *Program) FileExists(path string) bool {
123 return p.Host().FS().FileExists(path)
124}
125
126// GetCurrentDirectory implements checker.Program.
127func (p *Program) GetCurrentDirectory() string {

Callers

nothing calls this directly

Calls 3

HostMethod · 0.95
FileExistsMethod · 0.65
FSMethod · 0.65

Tested by

no test coverage detected