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

Method ToFileName

internal/api/proto.go:258–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256}
257
258func (d DocumentIdentifier) ToFileName() string {
259 if d.URI != "" {
260 return d.URI.FileName()
261 }
262 return d.FileName
263}
264
265// ToURI returns the document URI for this identifier. An explicitly provided URI
266// is returned as-is; a file name is first normalized to an absolute path against

Calls 1

FileNameMethod · 0.65

Tested by

no test coverage detected