mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
15 lines
355 B
Plaintext
15 lines
355 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.getExpr() = a and
|
|
a.getTarget().hasName("cd7") and
|
|
a.getTarget().getType().(DelegateType).hasFullyQualifiedName("Expressions", "D")
|
|
select m, e, a
|