mirror of
https://github.com/github/codeql.git
synced 2026-03-23 16:06:47 +01:00
13 lines
262 B
Plaintext
13 lines
262 B
Plaintext
/**
|
|
* @name Test for local variable access
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, LocalVariableAccess e
|
|
where m.hasName("MainLocalVarDecl")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getTarget().getName() = "a"
|
|
and e.getParent() instanceof AssignExpr
|
|
select m, e
|
|
|