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

Function couldBeTypeOnlyImportSpecifier

test/fixtures/snapshot/typescript.js:135436–135439  ·  view source on GitHub ↗
(importSpecifier, contextToken)

Source from the content-addressed store, hash-verified

135434 }
135435 }
135436 function couldBeTypeOnlyImportSpecifier(importSpecifier, contextToken) {
135437 return ts.isImportSpecifier(importSpecifier)
135438 && (importSpecifier.isTypeOnly || contextToken === importSpecifier.name && ts.isTypeKeywordTokenOrIdentifier(contextToken));
135439 }
135440 function canCompleteFromNamedBindings(namedBindings) {
135441 return isModuleSpecifierMissingOrEmpty(namedBindings.parent.parent.moduleSpecifier)
135442 && (ts.isNamespaceImport(namedBindings) || namedBindings.elements.length < 2)

Callers 3

collectAutoImportsFunction · 0.85
getCandidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected