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

Function createTypeCheck

test/fixtures/snapshot/typescript.js:26682–26686  ·  view source on GitHub ↗
(value, tag)

Source from the content-addressed store, hash-verified

26680 // Utilities
26681 //
26682 function createTypeCheck(value, tag) {
26683 return tag === "undefined"
26684 ? factory.createStrictEquality(value, createVoidZero())
26685 : factory.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag));
26686 }
26687 function createMethodCall(object, methodName, argumentsList) {
26688 // Preserve the optionality of `object`.
26689 if (ts.isCallChain(object)) {

Callers

nothing calls this directly

Calls 3

createVoidZeroFunction · 0.85
createTypeOfExpressionFunction · 0.85
createStringLiteralFunction · 0.85

Tested by

no test coverage detected