mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
358 B
Plaintext
15 lines
358 B
Plaintext
/**
|
|
* @name Test for anonymous methods
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Assignment assign, AnonymousMethodExpr e, LocalVariableAccess va
|
|
where
|
|
assign.getLValue().(VariableAccess).getTarget().hasName("f8") and
|
|
e.getParent+() = assign and
|
|
e.hasNoParameters() and
|
|
va.getEnclosingStmt().getParent+() = e.getBody() and
|
|
va.getTarget().hasName("j")
|
|
select e, va
|