mirror of
https://github.com/github/codeql.git
synced 2026-06-18 19:31:11 +02:00
12 lines
316 B
Plaintext
12 lines
316 B
Plaintext
/**
|
|
* @name Test for anonymous methods
|
|
*/
|
|
import csharp
|
|
|
|
from Assignment assign, AnonymousMethodExpr e
|
|
where assign.getLValue().(VariableAccess).getTarget().hasName("f7")
|
|
and e.getParent+() = assign
|
|
and e.getNumberOfParameters() = 1
|
|
and e.getType().(DelegateType).getReturnType() instanceof IntType
|
|
select e
|