mirror of
https://github.com/github/codeql.git
synced 2026-03-22 15:36:48 +01:00
13 lines
292 B
Plaintext
13 lines
292 B
Plaintext
/**
|
|
* @name Test for add event handlers
|
|
*/
|
|
import csharp
|
|
|
|
from Constructor c, AddEventExpr e
|
|
where c.hasName("LoginDialog")
|
|
and e.getEnclosingCallable() = c
|
|
and e.getTarget().hasName("Click")
|
|
and e.getLValue().getQualifier().(FieldAccess).getTarget().hasName("OkButton")
|
|
select c, e
|
|
|