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

Function getOriginalNode

test/fixtures/snapshot/typescript.js:12725–12732  ·  view source on GitHub ↗
(node, nodeTest)

Source from the content-addressed store, hash-verified

12723 }
12724 ts.validateLocaleAndSetLanguage = validateLocaleAndSetLanguage;
12725 function getOriginalNode(node, nodeTest) {
12726 if (node) {
12727 while (node.original !== undefined) {
12728 node = node.original;
12729 }
12730 }
12731 return !nodeTest || nodeTest(node) ? node : undefined;
12732 }
12733 ts.getOriginalNode = getOriginalNode;
12734 function findAncestor(node, callback) {
12735 while (node) {

Callers 1

getMapEntryOrDefaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected