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

Function preserveJsDoc

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

Source from the content-addressed store, hash-verified

108607 recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForEntityName(entityName));
108608 }
108609 function preserveJsDoc(updated, original) {
108610 if (ts.hasJSDocNodes(updated) && ts.hasJSDocNodes(original)) {
108611 updated.jsDoc = original.jsDoc;
108612 }
108613 return ts.setCommentRange(updated, ts.getCommentRange(original));
108614 }
108615 function rewriteModuleSpecifier(parent, input) {
108616 if (!input)
108617 return undefined; // TODO: GH#18217

Callers 3

cleanupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected