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

Method toPath

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

Source from the content-addressed store, hash-verified

423}
424
425func (p *Project) toPath(fileName string) tspath.Path {
426 return tspath.ToPath(fileName, p.currentDirectory, p.host.FS().UseCaseSensitiveFileNames())
427}
428
429func (p *Project) print(writeFileNames bool, writeFileExplanation bool, builder *strings.Builder) string {
430 builder.WriteString(fmt.Sprintf("\nProject '%s'\n", p.Name()))

Callers 15

HasFileMethod · 0.95
GetFileMethod · 0.45
getFileMethod · 0.45
DidChangeFilesMethod · 0.45
CloneMethod · 0.45
disposeMethod · 0.45
GetFileMethod · 0.45
GetAccessibleEntriesMethod · 0.45

Implementers 1

Projectinternal/project/project.go

Calls 3

ToPathFunction · 0.92
FSMethod · 0.65

Tested by

no test coverage detected