* Returns true if oldState is reusable, that is the emitKind = module/non module has not changed
(newReferencedMap, oldState)
| 119717 | * Returns true if oldState is reusable, that is the emitKind = module/non module has not changed |
| 119718 | */ |
| 119719 | function canReuseOldState(newReferencedMap, oldState) { |
| 119720 | return oldState && !oldState.referencedMap === !newReferencedMap; |
| 119721 | } |
| 119722 | BuilderState.canReuseOldState = canReuseOldState; |
| 119723 | /** |
| 119724 | * Creates the state of file references and signature for the new program from oldState if it is safe |