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

Function getSetAccessorValueParameter

test/fixtures/snapshot/typescript.js:18545–18550  ·  view source on GitHub ↗
(accessor)

Source from the content-addressed store, hash-verified

18543 }
18544 ts.getFirstConstructorWithBody = getFirstConstructorWithBody;
18545 function getSetAccessorValueParameter(accessor) {
18546 if (accessor && accessor.parameters.length > 0) {
18547 var hasThis = accessor.parameters.length === 2 && parameterIsThisKeyword(accessor.parameters[0]);
18548 return accessor.parameters[hasThis ? 1 : 0];
18549 }
18550 }
18551 ts.getSetAccessorValueParameter = getSetAccessorValueParameter;
18552 /** Get the type annotation for the value parameter. */
18553 function getSetAccessorTypeAnnotationNode(accessor) {

Calls 1

parameterIsThisKeywordFunction · 0.85

Tested by

no test coverage detected