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

Function getPromiseConstructor

test/fixtures/snapshot/typescript.js:96305–96315  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

96303 }
96304 }
96305 function getPromiseConstructor(type) {
96306 var typeName = type && ts.getEntityNameFromTypeNode(type);
96307 if (typeName && ts.isEntityName(typeName)) {
96308 var serializationKind = resolver.getTypeReferenceSerializationKind(typeName);
96309 if (serializationKind === ts.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue
96310 || serializationKind === ts.TypeReferenceSerializationKind.Unknown) {
96311 return typeName;
96312 }
96313 }
96314 return undefined;
96315 }
96316 function enableSubstitutionForAsyncMethodsWithSuper() {
96317 if ((enabledSubstitutions & 1 /* ES2017SubstitutionFlags.AsyncMethodsWithSuper */) === 0) {
96318 enabledSubstitutions |= 1 /* ES2017SubstitutionFlags.AsyncMethodsWithSuper */;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected