(config *tsoptions.ParsedCommandLine, reader BuildInfoReader, host compiler.CompilerHost)
| 42 | } |
| 43 | |
| 44 | func 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 | } |
no test coverage detected