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

Function createMethodCall

test/fixtures/snapshot/typescript.js:26687–26696  ·  view source on GitHub ↗
(object, methodName, argumentsList)

Source from the content-addressed store, hash-verified

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)) {
26690 return createCallChain(createPropertyAccessChain(object, /*questionDotToken*/ undefined, methodName),
26691 /*questionDotToken*/ undefined,
26692 /*typeArguments*/ undefined, argumentsList);
26693 }
26694 return createCallExpression(createPropertyAccessExpression(object, methodName),
26695 /*typeArguments*/ undefined, argumentsList);
26696 }
26697 function createFunctionBindCall(target, thisArg, argumentsList) {
26698 return createMethodCall(target, "bind", __spreadArray([thisArg], argumentsList, true));
26699 }

Callers 6

createFunctionBindCallFunction · 0.85
createFunctionCallCallFunction · 0.85
createFunctionApplyCallFunction · 0.85
createGlobalMethodCallFunction · 0.85
createArraySliceCallFunction · 0.85
createArrayConcatCallFunction · 0.85

Calls 4

createCallChainFunction · 0.85
createCallExpressionFunction · 0.85

Tested by

no test coverage detected