mirror of
https://github.com/github/codeql.git
synced 2026-03-22 15:36:48 +01:00
13 lines
261 B
Plaintext
13 lines
261 B
Plaintext
/**
|
|
* @name Test for local variable access
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, LocalVariableAccess e
|
|
where m.hasName("MainAccesses")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getTarget().getName() = "i"
|
|
and e.getParent() instanceof IndexerAccess
|
|
select m, e
|
|
|