mirror of
https://github.com/github/codeql.git
synced 2026-03-22 15:36:48 +01:00
13 lines
355 B
Plaintext
13 lines
355 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
|