C#: Cleaup expanded assignments from the dispatch logic.

This commit is contained in:
Michael Nebel
2026-03-20 12:42:30 +01:00
parent 2a78183238
commit e2afb000b2

View File

@@ -202,11 +202,9 @@ private module Internal {
private predicate isPotentialEventCall(
AssignArithmeticOperation aao, DynamicMemberAccess dma, string name
) {
exists(DynamicOperatorCall doc, AssignExpr ae |
ae = aao.getExpandedAssignment() and
dma = ae.getLValue() and
doc = ae.getRValue()
|
aao instanceof DynamicOperatorCall and
dma = aao.getLeftOperand() and
(
aao instanceof AssignAddExpr and
name = "add_" + dma.getLateBoundTargetName()
or