mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
14 lines
353 B
Plaintext
14 lines
353 B
Plaintext
/**
|
|
* @name Test for delegate calls
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, DelegateCall e, LocalVariableAccess a
|
|
where m.hasName("MainDelegateAndMethodAccesses")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getDelegateExpr() = a
|
|
and a.getTarget().hasName("cd7")
|
|
and a.getTarget().getType().(DelegateType).hasQualifiedName("Expressions.D")
|
|
select m, e, a
|
|
|