mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
14 lines
400 B
Plaintext
14 lines
400 B
Plaintext
/**
|
|
* @name Test for delegate creations
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, ExplicitDelegateCreation e
|
|
where m.hasName("MainDelegateAndMethodAccesses")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getDelegateType().hasName("D")
|
|
and e.getArgument().(MethodAccess).getTarget().hasName("M3")
|
|
and e.getArgument().(MethodAccess).getQualifier().(LocalVariableAccess).getTarget().hasName("c")
|
|
select m, e
|
|
|