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

Function getModuleInstanceStateCached

test/fixtures/snapshot/typescript.js:44549–44559  ·  view source on GitHub ↗
(node, visited)

Source from the content-addressed store, hash-verified

44547 }
44548 ts.getModuleInstanceState = getModuleInstanceState;
44549 function getModuleInstanceStateCached(node, visited) {
44550 if (visited === void 0) { visited = new ts.Map(); }
44551 var nodeId = ts.getNodeId(node);
44552 if (visited.has(nodeId)) {
44553 return visited.get(nodeId) || 0 /* ModuleInstanceState.NonInstantiated */;
44554 }
44555 visited.set(nodeId, undefined);
44556 var result = getModuleInstanceStateWorker(node, visited);
44557 visited.set(nodeId, result);
44558 return result;
44559 }
44560 function getModuleInstanceStateWorker(node, visited) {
44561 // A module is uninstantiated if it contains only
44562 switch (node.kind) {

Calls 4

hasMethod · 0.65
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected