MCPcopy Create free account
hub / github.com/nodejs/node / getErrorNodeFromCommonJsIndicator

Function getErrorNodeFromCommonJsIndicator

test/fixtures/snapshot/typescript.js:144809–144811  ·  view source on GitHub ↗
(commonJsModuleIndicator)

Source from the content-addressed store, hash-verified

144807 }
144808 ts.returnsPromise = returnsPromise;
144809 function getErrorNodeFromCommonJsIndicator(commonJsModuleIndicator) {
144810 return ts.isBinaryExpression(commonJsModuleIndicator) ? commonJsModuleIndicator.left : commonJsModuleIndicator;
144811 }
144812 function hasReturnStatementWithPromiseHandler(body, checker) {
144813 return !!ts.forEachReturnStatement(body, function (statement) { return isReturnStatementWithFixablePromiseHandler(statement, checker); });
144814 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected