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

Function updateWithOriginal

test/fixtures/snapshot/typescript.js:27225–27231  ·  view source on GitHub ↗
(updated, original)

Source from the content-addressed store, hash-verified

27223 return updated;
27224 }
27225 function updateWithOriginal(updated, original) {
27226 if (updated !== original) {
27227 setOriginalNode(updated, original);
27228 ts.setTextRange(updated, original);
27229 }
27230 return updated;
27231 }
27232 function getDefaultTagNameForKind(kind) {
27233 switch (kind) {
27234 case 343 /* SyntaxKind.JSDocTypeTag */: return "type";

Callers

nothing calls this directly

Calls 1

setOriginalNodeFunction · 0.85

Tested by

no test coverage detected