mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
C#: Cleaup expanded assignments from the dispatch logic.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user