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

Function getModuleInstanceState

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

Source from the content-addressed store, hash-verified

44538 ModuleInstanceState[ModuleInstanceState["ConstEnumOnly"] = 2] = "ConstEnumOnly";
44539 })(ModuleInstanceState = ts.ModuleInstanceState || (ts.ModuleInstanceState = {}));
44540 function getModuleInstanceState(node, visited) {
44541 if (node.body && !node.body.parent) {
44542 // getModuleInstanceStateForAliasTarget needs to walk up the parent chain, so parent pointers must be set on this tree already
44543 ts.setParent(node.body, node);
44544 ts.setParentRecursive(node.body, /*incremental*/ false);
44545 }
44546 return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* ModuleInstanceState.Instantiated */;
44547 }
44548 ts.getModuleInstanceState = getModuleInstanceState;
44549 function getModuleInstanceStateCached(node, visited) {
44550 if (visited === void 0) { visited = new ts.Map(); }

Callers 4

declareModuleSymbolFunction · 0.85
isPurelyTypeDeclarationFunction · 0.85

Calls 1

Tested by

no test coverage detected