mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Add missing BinaryExpression source side cases to isMatchingReference (#41765)
This commit is contained in:
@@ -20857,6 +20857,8 @@ namespace ts {
|
||||
return isAccessExpression(target) &&
|
||||
getAccessedPropertyName(<AccessExpression>source) === getAccessedPropertyName(target) &&
|
||||
isMatchingReference((<AccessExpression>source).expression, target.expression);
|
||||
case SyntaxKind.BinaryExpression:
|
||||
return (isBinaryExpression(source) && source.operatorToken.kind === SyntaxKind.CommaToken && isMatchingReference(source.right, target));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user