mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
14 lines
301 B
Plaintext
14 lines
301 B
Plaintext
/**
|
|
* @name Test for add event handlers
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Constructor c, RemoveEventExpr e
|
|
where
|
|
c.hasName("LoginDialog") and
|
|
e.getEnclosingCallable() = c and
|
|
e.getTarget().hasName("Click") and
|
|
e.getLValue().getQualifier().(FieldAccess).getTarget().hasName("CancelButton")
|
|
select c, e
|