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

Function isEmptyArrayAssignment

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

Source from the content-addressed store, hash-verified

69789 getInitialTypeOfBindingElement(node);
69790 }
69791 function isEmptyArrayAssignment(node) {
69792 return node.kind === 254 /* SyntaxKind.VariableDeclaration */ && node.initializer &&
69793 isEmptyArrayLiteral(node.initializer) ||
69794 node.kind !== 203 /* SyntaxKind.BindingElement */ && node.parent.kind === 221 /* SyntaxKind.BinaryExpression */ &&
69795 isEmptyArrayLiteral(node.parent.right);
69796 }
69797 function getReferenceCandidate(node) {
69798 switch (node.kind) {
69799 case 212 /* SyntaxKind.ParenthesizedExpression */:

Callers 1

getTypeAtFlowAssignmentFunction · 0.85

Calls 1

isEmptyArrayLiteralFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…