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

Function canBeConvertedToAsync

test/fixtures/snapshot/typescript.js:144902–144912  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

144900 return false;
144901 }
144902 function canBeConvertedToAsync(node) {
144903 switch (node.kind) {
144904 case 256 /* SyntaxKind.FunctionDeclaration */:
144905 case 169 /* SyntaxKind.MethodDeclaration */:
144906 case 213 /* SyntaxKind.FunctionExpression */:
144907 case 214 /* SyntaxKind.ArrowFunction */:
144908 return true;
144909 default:
144910 return false;
144911 }
144912 }
144913 ts.canBeConvertedToAsync = canBeConvertedToAsync;
144914})(ts || (ts = {}));
144915/* @internal */

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…