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

Function isDestructuringAssignment

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

Source from the content-addressed store, hash-verified

19080 }
19081 ts.isLeftHandSideOfAssignment = isLeftHandSideOfAssignment;
19082 function isDestructuringAssignment(node) {
19083 if (isAssignmentExpression(node, /*excludeCompoundAssignment*/ true)) {
19084 var kind = node.left.kind;
19085 return kind === 205 /* SyntaxKind.ObjectLiteralExpression */
19086 || kind === 204 /* SyntaxKind.ArrayLiteralExpression */;
19087 }
19088 return false;
19089 }
19090 ts.isDestructuringAssignment = isDestructuringAssignment;
19091 function isExpressionWithTypeArgumentsInClassExtendsClause(node) {
19092 return tryGetClassExtendingExpressionWithTypeArguments(node) !== undefined;

Callers

nothing calls this directly

Calls 1

isAssignmentExpressionFunction · 0.85

Tested by

no test coverage detected