Files
codeql/csharp/ql/test/library-tests/expressions/LocalConstAccess1.ql
2018-12-20 10:19:59 +01:00

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