mirror of
https://github.com/github/codeql.git
synced 2026-03-27 01:38:22 +01: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
|
|
|