mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
14 lines
269 B
Plaintext
14 lines
269 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(0).getName() = "c" and
|
|
i.getParameter(0).getType() instanceof CharType
|
|
select i
|