mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
14 lines
270 B
Plaintext
14 lines
270 B
Plaintext
/**
|
|
* @name Test for indexers
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Indexer i
|
|
where
|
|
i.getDeclaringType().hasQualifiedName("Indexers.Grid") and
|
|
i.getType() instanceof IntType and
|
|
i.getParameter(1).getName() = "col" and
|
|
i.getParameter(1).getType() instanceof IntType
|
|
select i
|