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

Function canBeConvertedToClass

test/fixtures/snapshot/typescript.js:144888–144901  ·  view source on GitHub ↗
(node, checker)

Source from the content-addressed store, hash-verified

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 */:

Callers 1

checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…