mirror of
https://github.com/github/codeql.git
synced 2026-03-26 17:28:29 +01:00
13 lines
247 B
Plaintext
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
|
|
|