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