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

Function addCandidateType

test/fixtures/snapshot/typescript.js:157505–157509  ·  view source on GitHub ↗
(usage, type)

Source from the content-addressed store, hash-verified

157503 return checker.createSignature(/*declaration*/ undefined, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, length, 0 /* SignatureFlags.None */);
157504 }
157505 function addCandidateType(usage, type) {
157506 if (type && !(type.flags & 1 /* TypeFlags.Any */) && !(type.flags & 131072 /* TypeFlags.Never */)) {
157507 (usage.candidateTypes || (usage.candidateTypes = [])).push(type);
157508 }
157509 }
157510 function addCandidateThisType(usage, type) {
157511 if (type && !(type.flags & 1 /* TypeFlags.Any */) && !(type.flags & 131072 /* TypeFlags.Never */)) {
157512 (usage.candidateThisTypes || (usage.candidateThisTypes = [])).push(type);

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected