mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
316 B
Plaintext
15 lines
316 B
Plaintext
/**
|
|
* @name Test for indexer access
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m, IndexerAccess e
|
|
where
|
|
m.hasName("MainAccesses") and
|
|
e.getEnclosingCallable() = m and
|
|
e.getQualifier() instanceof ThisAccess and
|
|
e.getIndex(0).(IntLiteral).getValue() = "0" and
|
|
e.getIndex(1).(StringLiteral).getValue() = ""
|
|
select m, e
|