MCPcopy Create free account
hub / github.com/microsoft/typescript-go / HasFile

Method HasFile

internal/project/project.go:230–232  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

228}
229
230func (p *Project) HasFile(fileName string) bool {
231 return p.containsFile(p.toPath(fileName))
232}
233
234func (p *Project) containsFile(path tspath.Path) bool {
235 return p.Program != nil && p.Program.GetSourceFileByPath(path) != nil

Callers

nothing calls this directly

Implementers 1

Projectinternal/project/project.go

Calls 2

containsFileMethod · 0.95
toPathMethod · 0.95

Tested by

no test coverage detected