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

Function getThisParameter

test/fixtures/snapshot/typescript.js:18558–18566  ·  view source on GitHub ↗
(signature)

Source from the content-addressed store, hash-verified

18556 }
18557 ts.getSetAccessorTypeAnnotationNode = getSetAccessorTypeAnnotationNode;
18558 function getThisParameter(signature) {
18559 // callback tags do not currently support this parameters
18560 if (signature.parameters.length && !ts.isJSDocSignature(signature)) {
18561 var thisParameter = signature.parameters[0];
18562 if (parameterIsThisKeyword(thisParameter)) {
18563 return thisParameter;
18564 }
18565 }
18566 }
18567 ts.getThisParameter = getThisParameter;
18568 function parameterIsThisKeyword(parameter) {
18569 return isThisIdentifier(parameter.name);

Callers

nothing calls this directly

Calls 1

parameterIsThisKeywordFunction · 0.85

Tested by

no test coverage detected