MCPcopy Create free account
hub / github.com/nodejs/node / substituteCallExpression

Function substituteCallExpression

test/fixtures/snapshot/typescript.js:96400–96412  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

96398 return node;
96399 }
96400 function substituteCallExpression(node) {
96401 var expression = node.expression;
96402 if (ts.isSuperProperty(expression)) {
96403 var argumentExpression = ts.isPropertyAccessExpression(expression)
96404 ? substitutePropertyAccessExpression(expression)
96405 : substituteElementAccessExpression(expression);
96406 return factory.createCallExpression(factory.createPropertyAccessExpression(argumentExpression, "call"),
96407 /*typeArguments*/ undefined, __spreadArray([
96408 factory.createThis()
96409 ], node.arguments, true));
96410 }
96411 return node;
96412 }
96413 function isSuperContainer(node) {
96414 var kind = node.kind;
96415 return kind === 257 /* SyntaxKind.ClassDeclaration */

Callers 1

substituteExpressionFunction · 0.85

Tested by

no test coverage detected