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

Function test

test/fixtures/snapshot/typescript.js:131123–131125  ·  view source on GitHub ↗
(condition)

Source from the content-addressed store, hash-verified

131121 var type_1 = typeChecker.getTypeAtLocation(node);
131122 if (type_1) {
131123 var test = function (condition) {
131124 return condition(type_1) || type_1.isUnion() && type_1.types.some(condition);
131125 };
131126 if (typeIdx !== 6 /* TokenType.parameter */ && test(function (t) { return t.getConstructSignatures().length > 0; })) {
131127 return 0 /* TokenType.class */;
131128 }

Callers 7

tryCastFunction · 0.70
castFunction · 0.70
assertNodeFunction · 0.70
assertNotNodeFunction · 0.70
assertOptionalNodeFunction · 0.70
findSpanEndFunction · 0.70
reclassifyByTypeFunction · 0.70

Calls 2

someMethod · 0.80
conditionFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…