(e)
| 109266 | return ts.flatten(ts.mapDefined(d.elements, function (e) { return recreateBindingElement(e); })); |
| 109267 | } |
| 109268 | function recreateBindingElement(e) { |
| 109269 | if (e.kind === 227 /* SyntaxKind.OmittedExpression */) { |
| 109270 | return; |
| 109271 | } |
| 109272 | if (e.name) { |
| 109273 | if (!getBindingNameVisible(e)) |
| 109274 | return; |
| 109275 | if (ts.isBindingPattern(e.name)) { |
| 109276 | return recreateBindingPattern(e.name); |
| 109277 | } |
| 109278 | else { |
| 109279 | return factory.createVariableDeclaration(e.name, /*exclamationToken*/ undefined, ensureType(e, /*type*/ undefined), /*initializer*/ undefined); |
| 109280 | } |
| 109281 | } |
| 109282 | } |
| 109283 | function checkName(node) { |
| 109284 | var oldDiag; |
| 109285 | if (!suppressNewDiagnosticContexts) { |
no test coverage detected
searching dependent graphs…