mirror of
https://github.com/github/codeql.git
synced 2026-03-23 16:06:47 +01:00
14 lines
312 B
Plaintext
14 lines
312 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
|
|
|