Files
codeql/csharp/ql/test/library-tests/constructors/Constructors3.ql
2018-12-20 10:19:59 +01:00

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()