* Determine if source file needs to be re-created even if its text hasn't changed
(program, newOptions)
| 116587 | * Determine if source file needs to be re-created even if its text hasn't changed |
| 116588 | */ |
| 116589 | function shouldProgramCreateNewSourceFiles(program, newOptions) { |
| 116590 | if (!program) |
| 116591 | return false; |
| 116592 | // If any compiler options change, we can't reuse old source file even if version match |
| 116593 | // The change in options like these could result in change in syntax tree or `sourceFile.bindDiagnostics`. |
| 116594 | return ts.optionsHaveChanges(program.getCompilerOptions(), newOptions, ts.sourceFileAffectingCompilerOptions); |
| 116595 | } |
| 116596 | function createCreateProgramOptions(rootNames, options, host, oldProgram, configFileParsingDiagnostics) { |
| 116597 | return { |
| 116598 | rootNames: rootNames, |
no outgoing calls
no test coverage detected
searching dependent graphs…