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

Function isReusableParameter

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

Source from the content-addressed store, hash-verified

32993 return variableDeclarator.initializer === undefined;
32994 }
32995 function isReusableParameter(node) {
32996 if (node.kind !== 164 /* SyntaxKind.Parameter */) {
32997 return false;
32998 }
32999 // See the comment in isReusableVariableDeclaration for why we do this.
33000 var parameter = node;
33001 return parameter.initializer === undefined;
33002 }
33003 // Returns true if we should abort parsing.
33004 function abortParsingListOrMoveToNextToken(kind) {
33005 parsingContextErrors(kind);

Callers 1

canReuseNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected