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

Function getPossiblyAwaitedRightHandSide

test/fixtures/snapshot/typescript.js:151937–151940  ·  view source on GitHub ↗
(checker, type, expr)

Source from the content-addressed store, hash-verified

151935 return ts.emptyArray;
151936 }
151937 function getPossiblyAwaitedRightHandSide(checker, type, expr) {
151938 var rightHandSide = ts.getSynthesizedDeepClone(expr);
151939 return !!checker.getPromisedTypeOfPromise(type) ? ts.factory.createAwaitExpression(rightHandSide) : rightHandSide;
151940 }
151941 function getLastCallSignature(type, checker) {
151942 var callSignatures = checker.getSignaturesOfType(type, 0 /* SignatureKind.Call */);
151943 return ts.lastOrUndefined(callSignatures);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected