mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
14 lines
278 B
Plaintext
14 lines
278 B
Plaintext
/**
|
|
* @name Test for indexers
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Indexer i
|
|
where
|
|
i.getDeclaringType().hasFullyQualifiedName("Indexers", "Grid") and
|
|
i.getType() instanceof IntType and
|
|
i.getParameter(1).getName() = "col" and
|
|
i.getParameter(1).getType() instanceof IntType
|
|
select i
|