mirror of
https://github.com/github/codeql.git
synced 2026-03-22 07:26:45 +01:00
13 lines
252 B
Plaintext
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()
|
|
|