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

Function shouldAddRestParameter

test/fixtures/snapshot/typescript.js:99443–99445  ·  view source on GitHub ↗

* Gets a value indicating whether we need to add statements to handle a rest parameter. * * @param node A ParameterDeclaration node. * @param inConstructorWithSynthesizedSuper A value indicating whether the parameter is * p

(node, inConstructorWithSynthesizedSuper)

Source from the content-addressed store, hash-verified

99441 * synthesized call to `super`
99442 */
99443 function shouldAddRestParameter(node, inConstructorWithSynthesizedSuper) {
99444 return !!(node && node.dotDotDotToken && !inConstructorWithSynthesizedSuper);
99445 }
99446 /**
99447 * Adds statements to the body of a function-like node if it contains a rest parameter.
99448 *

Callers 1

addRestParameterIfNeededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected