mirror of
https://github.com/github/codeql.git
synced 2026-03-22 07:26:45 +01:00
13 lines
290 B
Plaintext
13 lines
290 B
Plaintext
/**
|
|
* @name Test for array access
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, ArrayAccess e
|
|
where m.hasName("MainAccesses")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getQualifier().(LocalVariableAccess).getTarget().getName() = "array"
|
|
and e.getIndex(0).(IntLiteral).getValue() = "1"
|
|
select m, e
|
|
|