mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
283 B
Plaintext
15 lines
283 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
|