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

Function isModuleSpecifierMissingOrEmpty

test/fixtures/snapshot/typescript.js:135445–135450  ·  view source on GitHub ↗
(specifier)

Source from the content-addressed store, hash-verified

135443 && !namedBindings.parent.name;
135444 }
135445 function isModuleSpecifierMissingOrEmpty(specifier) {
135446 var _a;
135447 if (ts.nodeIsMissing(specifier))
135448 return true;
135449 return !((_a = ts.tryCast(ts.isExternalModuleReference(specifier) ? specifier.expression : specifier, ts.isStringLiteralLike)) === null || _a === void 0 ? void 0 : _a.text);
135450 }
135451 function getVariableDeclaration(property) {
135452 var variableDeclaration = ts.findAncestor(property, function (node) {
135453 return ts.isFunctionBlock(node) || isArrowFunctionBody(node) || ts.isBindingPattern(node)

Callers 2

getCandidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected