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

14 lines
249 B
Plaintext

/**
* @name Test for parameter access
*/
import csharp
from Method m, ParameterAccess e
where
m.hasName("Bar") and
e.getEnclosingCallable() = m and
e.getTarget().getName() = "x" and
e.getEnclosingStmt() instanceof ReturnStmt
select m, e