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

Function getDeclarationForBindingElement

test/fixtures/snapshot/typescript.js:131148–131157  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

131146 return false;
131147 }
131148 function getDeclarationForBindingElement(element) {
131149 while (true) {
131150 if (ts.isBindingElement(element.parent.parent)) {
131151 element = element.parent.parent;
131152 }
131153 else {
131154 return element.parent.parent;
131155 }
131156 }
131157 }
131158 function inImportClause(node) {
131159 var parent = node.parent;
131160 return parent && (ts.isImportClause(parent) || ts.isImportSpecifier(parent) || ts.isNamespaceImport(parent));

Callers 2

classifySymbolFunction · 0.85
isLocalDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected