mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
13 lines
333 B
Plaintext
13 lines
333 B
Plaintext
/**
|
|
* @name Test for lambda expressions
|
|
*/
|
|
import csharp
|
|
|
|
from Assignment assign, LambdaExpr e
|
|
where assign.getLValue().(VariableAccess).getTarget().hasName("f6")
|
|
and e.getParent+() = assign
|
|
and e.getNumberOfParameters() = 0
|
|
and e.getType().(DelegateType).hasName("Unit")
|
|
and e.getExpressionBody() instanceof Call
|
|
select e
|