mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
14 lines
254 B
Plaintext
14 lines
254 B
Plaintext
/**
|
|
* @name Test for constructors
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Constructor c
|
|
where
|
|
c.getNumberOfParameters() = 1 and
|
|
c.getParameter(0).getName() = "i" and
|
|
c.getParameter(0).getType() instanceof IntType and
|
|
c.fromSource()
|
|
select c, c.getAParameter()
|