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

Function walkBindingPattern

test/fixtures/snapshot/typescript.js:109160–109176  ·  view source on GitHub ↗
(pattern)

Source from the content-addressed store, hash-verified

109158 return walkBindingPattern(param.name);
109159 }
109160 function walkBindingPattern(pattern) {
109161 var elems;
109162 for (var _i = 0, _a = pattern.elements; _i < _a.length; _i++) {
109163 var elem = _a[_i];
109164 if (ts.isOmittedExpression(elem))
109165 continue;
109166 if (ts.isBindingPattern(elem.name)) {
109167 elems = ts.concatenate(elems, walkBindingPattern(elem.name));
109168 }
109169 elems = elems || [];
109170 elems.push(factory.createPropertyDeclaration(
109171 /*decorators*/ undefined, ensureModifiers(param), elem.name,
109172 /*questionToken*/ undefined, ensureType(elem, /*type*/ undefined),
109173 /*initializer*/ undefined));
109174 }
109175 return elems;
109176 }
109177 }));
109178 getSymbolAccessibilityDiagnostic = oldDiag_1;
109179 }

Callers 1

Calls 3

ensureModifiersFunction · 0.85
ensureTypeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…