mirror of
https://github.com/github/codeql.git
synced 2026-03-23 07:56:54 +01:00
14 lines
281 B
Plaintext
14 lines
281 B
Plaintext
/**
|
|
* @name Test for object creations
|
|
*/
|
|
import csharp
|
|
|
|
from Constructor c, ObjectCreation e, Constructor cc
|
|
where c.hasName("LoginDialog")
|
|
and e.getEnclosingCallable() = c
|
|
and e.getTarget() = cc
|
|
and e.getNumberOfArguments() = 0
|
|
and cc.hasName("Button")
|
|
select c, e, cc
|
|
|