mirror of
https://github.com/github/codeql.git
synced 2026-03-27 17:58:17 +01:00
15 lines
351 B
Plaintext
15 lines
351 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.getNumberOfArguments() = 1
|
|
and e.getDelegateExpr() = a
|
|
and a.getTarget().hasName("cd1")
|
|
and e.getArgument(0).getValue() = "-40"
|
|
select m, e, a
|
|
|