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

Function isAssignmentExpression

test/fixtures/snapshot/typescript.js:19070–19076  ·  view source on GitHub ↗
(node, excludeCompoundAssignment)

Source from the content-addressed store, hash-verified

19068 }
19069 ts.tryGetClassImplementingOrExtendingExpressionWithTypeArguments = tryGetClassImplementingOrExtendingExpressionWithTypeArguments;
19070 function isAssignmentExpression(node, excludeCompoundAssignment) {
19071 return ts.isBinaryExpression(node)
19072 && (excludeCompoundAssignment
19073 ? node.operatorToken.kind === 63 /* SyntaxKind.EqualsToken */
19074 : isAssignmentOperator(node.operatorToken.kind))
19075 && ts.isLeftHandSideExpression(node.left);
19076 }
19077 ts.isAssignmentExpression = isAssignmentExpression;
19078 function isLeftHandSideOfAssignment(node) {
19079 return isAssignmentExpression(node.parent) && node.parent.left === node;

Callers 3

Calls 1

isAssignmentOperatorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…