MCPcopy Create free account
hub / github.com/nodejs/node / removeSemanticDiagnosticsOf

Function removeSemanticDiagnosticsOf

test/fixtures/snapshot/typescript.js:120380–120387  ·  view source on GitHub ↗

* Removes semantic diagnostics for path and * returns true if there are no more semantic diagnostics from the old state

(state, path)

Source from the content-addressed store, hash-verified

120378 * returns true if there are no more semantic diagnostics from the old state
120379 */
120380 function removeSemanticDiagnosticsOf(state, path) {
120381 if (!state.semanticDiagnosticsFromOldState) {
120382 return true;
120383 }
120384 state.semanticDiagnosticsFromOldState.delete(path);
120385 state.semanticDiagnosticsPerFile.delete(path);
120386 return !state.semanticDiagnosticsFromOldState.size;
120387 }
120388 function isChangedSignature(state, path) {
120389 var newSignature = ts.Debug.checkDefined(state.currentAffectedFilesSignatures).get(path);
120390 var oldSignature = ts.Debug.checkDefined(state.fileInfos.get(path)).signature;

Callers 3

handleDtsMayChangeOfFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected