MCPcopy Index your code
hub / github.com/nodejs/node / canReuseOldState

Function canReuseOldState

test/fixtures/snapshot/typescript.js:119719–119721  ·  view source on GitHub ↗

* Returns true if oldState is reusable, that is the emitKind = module/non module has not changed

(newReferencedMap, oldState)

Source from the content-addressed store, hash-verified

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

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected