mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
14 lines
264 B
Plaintext
14 lines
264 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
|