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

Function GetMTime

internal/execute/incremental/host.go:38–45  ·  view source on GitHub ↗
(host compiler.CompilerHost, fileName string)

Source from the content-addressed store, hash-verified

36}
37
38func GetMTime(host compiler.CompilerHost, fileName string) time.Time {
39 stat := host.FS().Stat(fileName)
40 var mTime time.Time
41 if stat != nil {
42 mTime = stat.ModTime()
43 }
44 return mTime
45}

Callers 1

GetMTimeMethod · 0.85

Calls 3

ModTimeMethod · 0.80
StatMethod · 0.65
FSMethod · 0.65

Tested by

no test coverage detected