Files
codeql/csharp/ql/test/library-tests/expressions/ParameterAccess2.ql
2018-08-02 17:53:23 +01:00

13 lines
247 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