Files
codeql/csharp/ql/test/library-tests/constructors/Constructors3.ql
2018-08-02 17:53:23 +01:00

13 lines
252 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()