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

Function getContextualTypeForAwaitOperand

test/fixtures/snapshot/typescript.js:72516–72523  ·  view source on GitHub ↗
(node, contextFlags)

Source from the content-addressed store, hash-verified

72514 return undefined;
72515 }
72516 function getContextualTypeForAwaitOperand(node, contextFlags) {
72517 var contextualType = getContextualType(node, contextFlags);
72518 if (contextualType) {
72519 var contextualAwaitedType = getAwaitedTypeNoAlias(contextualType);
72520 return contextualAwaitedType && getUnionType([contextualAwaitedType, createPromiseLikeType(contextualAwaitedType)]);
72521 }
72522 return undefined;
72523 }
72524 function getContextualTypeForYieldOperand(node) {
72525 var func = ts.getContainingFunction(node);
72526 if (func) {

Callers 1

getContextualTypeFunction · 0.85

Calls 4

getContextualTypeFunction · 0.85
getAwaitedTypeNoAliasFunction · 0.85
getUnionTypeFunction · 0.85
createPromiseLikeTypeFunction · 0.85

Tested by

no test coverage detected