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

Function hasDefaultValue

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

Source from the content-addressed store, hash-verified

73340 return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type;
73341 }
73342 function hasDefaultValue(node) {
73343 return (node.kind === 203 /* SyntaxKind.BindingElement */ && !!node.initializer) ||
73344 (node.kind === 221 /* SyntaxKind.BinaryExpression */ && node.operatorToken.kind === 63 /* SyntaxKind.EqualsToken */);
73345 }
73346 function checkArrayLiteral(node, checkMode, forceTuple) {
73347 var elements = node.elements;
73348 var elementCount = elements.length;

Calls

no outgoing calls

Tested by

no test coverage detected