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

Method toPath

internal/compiler/program.go:1793–1795  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

1791}
1792
1793func (p *Program) toPath(filename string) tspath.Path {
1794 return tspath.ToPath(filename, p.GetCurrentDirectory(), p.UseCaseSensitiveFileNames())
1795}
1796
1797func (p *Program) GetSourceFile(filename string) *ast.SourceFile {
1798 path := p.toPath(filename)

Callers 15

GetParseFileRedirectMethod · 0.95
verifyCompilerOptionsMethod · 0.95
blockEmittingOfFileMethod · 0.95
IsEmitBlockedMethod · 0.95
GetSourceFileMethod · 0.95
IsMissingPathMethod · 0.95
GetSymlinkCacheMethod · 0.95
getSourceFileMethod · 0.95
getSourceFileMetadataMethod · 0.95
getSourceFileMethod · 0.95
getSourceFileMetadataMethod · 0.95

Calls 3

GetCurrentDirectoryMethod · 0.95
ToPathFunction · 0.92

Tested by

no test coverage detected