mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
336 B
Plaintext
15 lines
336 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
|