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

Function isPossiblyPartOfDestructuring

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

Source from the content-addressed store, hash-verified

150691 }
150692 }
150693 function isPossiblyPartOfDestructuring(node) {
150694 switch (node.kind) {
150695 case 79 /* SyntaxKind.Identifier */:
150696 case 204 /* SyntaxKind.ArrayLiteralExpression */:
150697 case 205 /* SyntaxKind.ObjectLiteralExpression */:
150698 case 296 /* SyntaxKind.PropertyAssignment */:
150699 case 297 /* SyntaxKind.ShorthandPropertyAssignment */:
150700 return true;
150701 default:
150702 return false;
150703 }
150704 }
150705 function arrayElementCouldBeVariableDeclaration(expression, checker) {
150706 var identifier = ts.isIdentifier(expression) ? expression :
150707 ts.isAssignmentExpression(expression, /*excludeCompoundAssignment*/ true) && ts.isIdentifier(expression.left) ? expression.left :

Callers 1

makeChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected