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

Function createAssignmentTargetWrapper

test/fixtures/snapshot/typescript.js:26864–26880  ·  view source on GitHub ↗
(paramName, expression)

Source from the content-addressed store, hash-verified

26862 return { target: target, thisArg: thisArg };
26863 }
26864 function createAssignmentTargetWrapper(paramName, expression) {
26865 return createPropertyAccessExpression(
26866 // Explicit parens required because of v8 regression (https://bugs.chromium.org/p/v8/issues/detail?id=9560)
26867 createParenthesizedExpression(createObjectLiteralExpression([
26868 createSetAccessorDeclaration(
26869 /*decorators*/ undefined,
26870 /*modifiers*/ undefined, "value", [createParameterDeclaration(
26871 /*decorators*/ undefined,
26872 /*modifiers*/ undefined,
26873 /*dotDotDotToken*/ undefined, paramName,
26874 /*questionToken*/ undefined,
26875 /*type*/ undefined,
26876 /*initializer*/ undefined)], createBlock([
26877 createExpressionStatement(expression)
26878 ]))
26879 ])), "value");
26880 }
26881 function inlineExpressions(expressions) {
26882 // Avoid deeply nested comma expressions as traversing them during emit can result in "Maximum call
26883 // stack size exceeded" errors.

Callers

nothing calls this directly

Calls 7

createBlockFunction · 0.85

Tested by

no test coverage detected