mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
14 lines
303 B
Plaintext
14 lines
303 B
Plaintext
/**
|
|
* @name Test for delegate creations
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m, ImplicitDelegateCreation e
|
|
where
|
|
m.hasName("MainDelegateAndMethodAccesses") and
|
|
e.getEnclosingCallable() = m and
|
|
e.getDelegateType().hasName("D") and
|
|
e.getArgument().(MethodAccess).getTarget().hasName("M2")
|
|
select m, e
|