Skip to content

Commit 23d09ed

Browse files
committed
Address review comment
1 parent ccb9d9b commit 23d09ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/FlowSummary.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private SummaryComponent delegateSelf() {
169169
private predicate mayInvokeCallback(Callable c, int n) {
170170
c.getParameter(n).getType() instanceof SystemLinqExpressions::DelegateExtType and
171171
not c.hasBody() and
172-
(if c instanceof AddEventAccessor then not c.fromSource() else any())
172+
(if c instanceof Accessor then not c.fromSource() else any())
173173
}
174174

175175
private class SummarizedCallableWithCallback extends SummarizedCallable {

csharp/ql/lib/semmle/code/csharp/dataflow/internal/SsaImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private module CallGraph {
314314
target = c.getTarget() and
315315
not target.hasBody()
316316
|
317-
if target instanceof AddEventAccessor then not target.fromSource() else any()
317+
if target instanceof Accessor then not target.fromSource() else any()
318318
) and
319319
e = c.getAnArgument() and
320320
e.getType() instanceof SystemLinqExpressions::DelegateExtType and

0 commit comments

Comments
 (0)