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

Function ReadBuildInfoProgram

internal/execute/incremental/incremental.go:44–56  ·  view source on GitHub ↗
(config *tsoptions.ParsedCommandLine, reader BuildInfoReader, host compiler.CompilerHost)

Source from the content-addressed store, hash-verified

42}
43
44func ReadBuildInfoProgram(config *tsoptions.ParsedCommandLine, reader BuildInfoReader, host compiler.CompilerHost) *Program {
45 // Read buildInfo file
46 buildInfo := reader.ReadBuildInfo(config)
47 if buildInfo == nil || !buildInfo.IsValidVersion() || !buildInfo.IsIncremental() {
48 return nil
49 }
50
51 // Convert to information that can be used to create incremental program
52 incrementalProgram := &Program{
53 snapshot: buildInfoToSnapshot(buildInfo, config, host),
54 }
55 return incrementalProgram
56}

Callers 3

startMethod · 0.92
createProgramFunction · 0.92

Calls 4

buildInfoToSnapshotFunction · 0.85
IsValidVersionMethod · 0.80
ReadBuildInfoMethod · 0.65
IsIncrementalMethod · 0.45

Tested by

no test coverage detected