(s)
| 47728 | } |
| 47729 | // As opposed to a pure declaration like an `interface` |
| 47730 | function isExecutableStatement(s) { |
| 47731 | // Don't remove statements that can validly be used before they appear. |
| 47732 | return !ts.isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !ts.isEnumDeclaration(s) && |
| 47733 | // `var x;` may declare a variable used above |
| 47734 | !(ts.isVariableStatement(s) && !(ts.getCombinedNodeFlags(s) & (1 /* NodeFlags.Let */ | 2 /* NodeFlags.Const */)) && s.declarationList.declarations.some(function (d) { return !d.initializer; })); |
| 47735 | } |
| 47736 | function isPurelyTypeDeclaration(s) { |
| 47737 | switch (s.kind) { |
| 47738 | case 258 /* SyntaxKind.InterfaceDeclaration */: |
no test coverage detected