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

Function shouldReportErrorOnModuleDeclaration

test/fixtures/snapshot/typescript.js:47679–47682  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

47677 }
47678 // reachability checks
47679 function shouldReportErrorOnModuleDeclaration(node) {
47680 var instanceState = getModuleInstanceState(node);
47681 return instanceState === 1 /* ModuleInstanceState.Instantiated */ || (instanceState === 2 /* ModuleInstanceState.ConstEnumOnly */ && ts.shouldPreserveConstEnums(options));
47682 }
47683 function checkUnreachable(node) {
47684 if (!(currentFlow.flags & 1 /* FlowFlags.Unreachable */)) {
47685 return false;

Callers 1

checkUnreachableFunction · 0.85

Calls 1

getModuleInstanceStateFunction · 0.85

Tested by

no test coverage detected