mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
15 lines
314 B
Plaintext
15 lines
314 B
Plaintext
/**
|
|
* @name Test for local constant access
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m, LocalVariableAccess e, LocalConstant c
|
|
where
|
|
m.hasName("MainLocalConstDecl") and
|
|
e.getEnclosingCallable() = m and
|
|
e.getTarget() = c and
|
|
c.getName() = "pi" and
|
|
e.getParent().getParent().getParent() instanceof Call
|
|
select m, e
|