We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcf78ac commit e0919f1Copy full SHA for e0919f1
csharp/ql/lib/semmle/code/csharp/dispatch/Dispatch.qll
@@ -202,11 +202,9 @@ private module Internal {
202
private predicate isPotentialEventCall(
203
AssignArithmeticOperation aao, DynamicMemberAccess dma, string name
204
) {
205
- exists(DynamicOperatorCall doc, AssignExpr ae |
206
- ae = aao.getExpandedAssignment() and
207
- dma = ae.getLValue() and
208
- doc = ae.getRValue()
209
- |
+ aao instanceof DynamicOperatorCall and
+ dma = aao.getLeftOperand() and
+ (
210
aao instanceof AssignAddExpr and
211
name = "add_" + dma.getLateBoundTargetName()
212
or
0 commit comments