(node, checker)
| 144886 | return "".concat(exp.pos.toString(), ":").concat(exp.end.toString()); |
| 144887 | } |
| 144888 | function canBeConvertedToClass(node, checker) { |
| 144889 | var _a, _b, _c, _d; |
| 144890 | if (node.kind === 213 /* SyntaxKind.FunctionExpression */) { |
| 144891 | if (ts.isVariableDeclaration(node.parent) && ((_a = node.symbol.members) === null || _a === void 0 ? void 0 : _a.size)) { |
| 144892 | return true; |
| 144893 | } |
| 144894 | var symbol = checker.getSymbolOfExpando(node, /*allowDeclaration*/ false); |
| 144895 | return !!(symbol && (((_b = symbol.exports) === null || _b === void 0 ? void 0 : _b.size) || ((_c = symbol.members) === null || _c === void 0 ? void 0 : _c.size))); |
| 144896 | } |
| 144897 | if (node.kind === 256 /* SyntaxKind.FunctionDeclaration */) { |
| 144898 | return !!((_d = node.symbol.members) === null || _d === void 0 ? void 0 : _d.size); |
| 144899 | } |
| 144900 | return false; |
| 144901 | } |
| 144902 | function canBeConvertedToAsync(node) { |
| 144903 | switch (node.kind) { |
| 144904 | case 256 /* SyntaxKind.FunctionDeclaration */: |
no outgoing calls
no test coverage detected
searching dependent graphs…